From e2aa9c53502ed19bf36870f0c7d1ad674fa68518 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Mon, 13 Jan 2025 12:32:41 +0530 Subject: [PATCH] Make media image background checkered to show transparency. Closes #2080. --- frontend/src/assets/style.scss | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/src/assets/style.scss b/frontend/src/assets/style.scss index 42342f1d0..d561a2142 100644 --- a/frontend/src/assets/style.scss +++ b/frontend/src/assets/style.scss @@ -901,16 +901,20 @@ section.analytics { /* Media gallery */ .media-files { img { - max-width: 125px; + max-width: 140px; + max-height: 140px; } .thumb.box { - display: inline-block; - padding: 5px; - min-width: 140px; - max-height: 140px; - overflow: hidden; + background: repeating-conic-gradient(#f0f0f0 0 90deg, #fff 90deg 180deg) 0 0 / 32px 32px; + display: flex; + justify-content: center; + align-items: center; + width: fit-content; + height: fit-content; text-align: center; + padding: 0; + overflow: hidden; } .ext { text-transform: uppercase;