better gallery css
Browse files
app.py
CHANGED
|
@@ -93,6 +93,18 @@ tr:has(> td div span span div.diffDeletion) {
|
|
| 93 |
tr td {
|
| 94 |
border-top: 1px solid black;
|
| 95 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
"""
|
| 97 |
|
| 98 |
|
|
@@ -124,7 +136,6 @@ with gr.Blocks(css=css, js=make_gallery_image_buttons_js) as demo:
|
|
| 124 |
show_download_button=False,
|
| 125 |
show_fullscreen_button=False,
|
| 126 |
elem_id="pipeline-gallery",
|
| 127 |
-
height="200px",
|
| 128 |
allow_preview=False,
|
| 129 |
)
|
| 130 |
gallery_image_buttons = [gr.Button(visible=False, elem_classes="block-button") for _ in blocks] # hack to simulate each image galery as a button, see `make_gallery_image_buttons_js``
|
|
|
|
| 93 |
tr td {
|
| 94 |
border-top: 1px solid black;
|
| 95 |
}
|
| 96 |
+
.grid-container {
|
| 97 |
+
gap: 0;
|
| 98 |
+
grid-template-rows: auto;
|
| 99 |
+
grid-auto-rows: auto;
|
| 100 |
+
}
|
| 101 |
+
.thumbnail-item {
|
| 102 |
+
aspect-ratio: auto;
|
| 103 |
+
height: min-content;
|
| 104 |
+
}
|
| 105 |
+
.grid-wrap {
|
| 106 |
+
min-height: 0;
|
| 107 |
+
}
|
| 108 |
"""
|
| 109 |
|
| 110 |
|
|
|
|
| 136 |
show_download_button=False,
|
| 137 |
show_fullscreen_button=False,
|
| 138 |
elem_id="pipeline-gallery",
|
|
|
|
| 139 |
allow_preview=False,
|
| 140 |
)
|
| 141 |
gallery_image_buttons = [gr.Button(visible=False, elem_classes="block-button") for _ in blocks] # hack to simulate each image galery as a button, see `make_gallery_image_buttons_js``
|