tchung1970 commited on
Commit
8c764ec
·
1 Parent(s): 5026cef

Match Z-Image output section exactly - white background with padding

Browse files
Files changed (1) hide show
  1. app.py +15 -13
app.py CHANGED
@@ -11,7 +11,7 @@ from utils.image_utils import rescale_image
11
  from utils.prompt_utils import polish_prompt
12
 
13
 
14
- # Force rebuild v18
15
  MODEL_REPO = "meituan-longcat/LongCat-Image"
16
  MAX_SEED = np.iinfo(np.int32).max
17
 
@@ -174,11 +174,11 @@ button.primary:active {
174
 
175
  /* Output Section */
176
  div.output-section {
177
- background: #1d1d1f !important;
178
  border-radius: 18px;
179
- padding: 0 !important;
180
- box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
181
- border: 5px solid #ffffff !important;
182
  overflow: hidden;
183
  display: flex;
184
  align-items: center;
@@ -189,6 +189,12 @@ div.output-section {
189
  position: relative;
190
  }
191
 
 
 
 
 
 
 
192
  .output-section * {
193
  transform: none !important;
194
  transition: none !important;
@@ -212,24 +218,20 @@ div.output-section {
212
  /* Make progress/generation area fill more space */
213
  .output-section > div {
214
  width: 100% !important;
215
- height: 100% !important;
216
- flex: 1 !important;
217
  display: flex !important;
218
  align-items: center !important;
219
  justify-content: center !important;
220
- border: none !important;
221
- border-radius: 0 !important;
222
- background: transparent !important;
223
  }
224
 
225
  .output-section > div > div {
 
 
226
  width: 100% !important;
227
- height: 100% !important;
228
  display: flex !important;
229
  align-items: center !important;
230
  justify-content: center !important;
231
- border: none !important;
232
- background: transparent !important;
233
  }
234
 
235
  .output-section * {
 
11
  from utils.prompt_utils import polish_prompt
12
 
13
 
14
+ # Force rebuild v19
15
  MODEL_REPO = "meituan-longcat/LongCat-Image"
16
  MAX_SEED = np.iinfo(np.int32).max
17
 
 
174
 
175
  /* Output Section */
176
  div.output-section {
177
+ background: #ffffff;
178
  border-radius: 18px;
179
+ padding: 32px;
180
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
181
+ border: none !important;
182
  overflow: hidden;
183
  display: flex;
184
  align-items: center;
 
189
  position: relative;
190
  }
191
 
192
+ .dark .output-section,
193
+ .dark div.output-section {
194
+ background: #1d1d1f;
195
+ box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
196
+ }
197
+
198
  .output-section * {
199
  transform: none !important;
200
  transition: none !important;
 
218
  /* Make progress/generation area fill more space */
219
  .output-section > div {
220
  width: 100% !important;
221
+ min-height: 75vh !important;
222
+ max-height: 85vh !important;
223
  display: flex !important;
224
  align-items: center !important;
225
  justify-content: center !important;
 
 
 
226
  }
227
 
228
  .output-section > div > div {
229
+ min-height: 75vh !important;
230
+ max-height: 85vh !important;
231
  width: 100% !important;
 
232
  display: flex !important;
233
  align-items: center !important;
234
  justify-content: center !important;
 
 
235
  }
236
 
237
  .output-section * {