fantos commited on
Commit
8f39f51
1 Parent(s): 35695a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -78,16 +78,22 @@ footer {display: none !important}
78
  max-width: 100% !important;
79
  overflow: hidden !important;
80
  }
 
 
 
 
 
 
81
  .gallery-container {
82
  display: grid !important;
83
- grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
84
  gap: 16px !important;
85
  padding: 16px !important;
86
  background: rgba(255, 255, 255, 0.05);
87
  border-radius: 8px;
88
  margin-top: 10px;
89
  width: 100% !important;
90
- max-width: 100% !important;
91
  box-sizing: border-box !important;
92
  }
93
  /* Force gallery items to maintain aspect ratio */
@@ -257,7 +263,6 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
257
  elem_classes=["output-image", "fixed-width"]
258
  )
259
 
260
-
261
  gallery = gr.Gallery(
262
  label="Generated Images Gallery",
263
  show_label=True,
@@ -267,9 +272,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
267
  height="auto",
268
  object_fit="cover",
269
  elem_classes=["gallery-container", "fixed-width"]
270
- )
271
-
272
-
273
 
274
 
275
  # Load existing gallery images on startup
 
78
  max-width: 100% !important;
79
  overflow: hidden !important;
80
  }
81
+ #gallery > div {
82
+ width: 100% !important;
83
+ max-width: none !important;
84
+ transform: scale(2) !important;
85
+ transform-origin: left top !important;
86
+ }
87
  .gallery-container {
88
  display: grid !important;
89
+ grid-template-columns: repeat(5, 1fr) !important;
90
  gap: 16px !important;
91
  padding: 16px !important;
92
  background: rgba(255, 255, 255, 0.05);
93
  border-radius: 8px;
94
  margin-top: 10px;
95
  width: 100% !important;
96
+ max-width: none !important;
97
  box-sizing: border-box !important;
98
  }
99
  /* Force gallery items to maintain aspect ratio */
 
263
  elem_classes=["output-image", "fixed-width"]
264
  )
265
 
 
266
  gallery = gr.Gallery(
267
  label="Generated Images Gallery",
268
  show_label=True,
 
272
  height="auto",
273
  object_fit="cover",
274
  elem_classes=["gallery-container", "fixed-width"]
275
+ )
 
 
276
 
277
 
278
  # Load existing gallery images on startup