From 64f047d1901bb673aa0c417af414ef2ad9336b0d Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Thu, 7 May 2026 11:34:25 +0200 Subject: [PATCH] some improvements to gallery view previews and size consistency --- copyparty/web/browser.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 1f602612..d8050c49 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -965,10 +965,12 @@ tr.play td:nth-child(1) a { margin: 0 auto; display: block; width: 100%; + height: 100%; object-fit: cover; } #ggrid.noupscale>a img { width: auto; + height: auto; } #ggrid.noupscale.gallery.nocrop>a img { object-fit: scale-down; @@ -3953,6 +3955,8 @@ html.e #wrap.thin { margin: .3em; } a.img { + height: calc(var(--grid-sz) / 1.1 - 4px); + max-height: none; span { display: none; } @@ -3974,7 +3978,7 @@ html.e #wrap.thin { width: auto; img { max-width: 100%; - height: calc(var(--grid-sz) - 2em); + height: calc(var(--grid-sz) - 1em); } }