Video gallery support in default UI

This commit is contained in:
CalamitousFelicitousness
2025-08-27 00:45:39 +01:00
parent 72847f6b40
commit 3beb0d2a21
2 changed files with 50 additions and 13 deletions
+23
View File
@@ -1748,6 +1748,13 @@ background: var(--background-color)
width: max-content;
}
#tab-gallery-files gallery-file {
/* Add a vertical gutter between items (left/right), matching existing small row spacing */
display: inline-block;
margin-right: 0.2em;
vertical-align: top; /* keep rows aligned on the top edge */
}
#tab-gallery-files {
display: block;
height: 75vh;
@@ -1845,6 +1852,22 @@ div:has(>#tab-gallery-folders) {
object-fit: contain;
}
/* Gallery video preview matches image preview sizing and layout */
#tab-gallery-video {
height: 63vh;
}
/* Ensure the <video> element fills the preview column and preserves aspect */
#tab-gallery-video video {
width: 100%;
height: 100% !important;
object-fit: contain;
background: none;
}
/* Gradio container around the video should not add extra spacing */
#tab-gallery-video .wrap { height: 100%; }
.gallery-sort {
background: var(--input-background-fill) !important;
margin: 0 !important;