waveshaker commited on
Commit
b6da9b7
·
verified ·
1 Parent(s): 0597ac1

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +9 -3
style.css CHANGED
@@ -89,7 +89,7 @@ select::picker-icon { margin-inline-end: 0px; }
89
  }
90
 
91
  .right-panel {
92
- height: auto;
93
  display: flex;
94
  flex-direction: column;
95
  gap: 16px;
@@ -101,13 +101,19 @@ select::picker-icon { margin-inline-end: 0px; }
101
  height: auto;
102
  }
103
 
 
 
 
 
 
 
104
  /* 图像预览区容器 */
105
  .image-preview-box {
106
  width: 100%;
107
  max-width: 100%;
108
- height: 400px;
109
  flex-shrink: 0;
110
- border-radius: 8px;
111
  display: flex;
112
  justify-content: center;
113
  align-items: center;
 
89
  }
90
 
91
  .right-panel {
92
+ height: calc(100vh - 40px);
93
  display: flex;
94
  flex-direction: column;
95
  gap: 16px;
 
101
  height: auto;
102
  }
103
 
104
+ .output-card{
105
+ aspect-ratio: 1 / 1; /* 核心属性:强制高度永远等于当前宽度 */
106
+ height: auto; /* 清除之前可能写死的固定 height 或 flex-grow */
107
+ flex: none; /* 如果父容器是 flex-col,防止它被强行拉伸 */
108
+ }
109
+
110
  /* 图像预览区容器 */
111
  .image-preview-box {
112
  width: 100%;
113
  max-width: 100%;
114
+ height: 100%;
115
  flex-shrink: 0;
116
+ border-radius: 0px;
117
  display: flex;
118
  justify-content: center;
119
  align-items: center;