aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPortableProgrammer <[email protected]>2025-01-08 22:16:34 +0000
committerPortableProgrammer <[email protected]>2025-01-08 22:16:34 +0000
commit7314a7a686c87b72712d928bf017ae2d173f6ff2 (patch)
tree473569de757d3b11c3e28d77b5427858b6eca8c3
parent44d4ab8040c6d423a6761512f543b661dea30bf7 (diff)
Futher tweak card view styling for small screens, fix
-rw-r--r--src/public/styles.css21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/public/styles.css b/src/public/styles.css
index 7d70725..41c9613 100644
--- a/src/public/styles.css
+++ b/src/public/styles.css
@@ -288,27 +288,36 @@ summary::before {
288 height: 4rem; 288 height: 4rem;
289} 289}
290 290
291.media-preview.card {
292 padding: unset;
293}
294
291.media-preview.card img, 295.media-preview.card img,
292.media-preview.card video { 296.media-preview.card video {
293 border-radius: 6px; 297 border-radius: 6px;
294 298
295 max-height: 40vh; 299 max-height: 40vh;
296 max-width: 100%; 300 max-width: 95%;
297 301
298 display: block; 302 display: block;
299 width: initial; 303 width: unset;
300 height: initial; 304 height: unset;
301 margin-left: auto; 305 margin-left: auto;
302 margin-right: auto; 306 margin-right: auto;
303 margin-bottom: 1rem; 307 margin-bottom: 0.5rem;
304 308
305 object-fit: fill; 309 object-fit: fill;
306} 310}
307 311
308.media-preview.card a { 312.media-preview.card a {
309 font-size: 1.5rem; 313 font-size: 1.5rem;
310 margin: 1rem; 314 padding: unset;
311 padding: initial; 315 padding-left: 1rem;
316}
317
318.media-preview.card a:has(img) {
319 font-size: 0rem;
320 padding: unset;
312} 321}
313 322
314.media-preview a { 323.media-preview a {