It's time to double down on scale-down

This commit is contained in:
Lim Chee Aun 2023-09-07 11:58:17 +08:00
parent 0d090eb555
commit 67fb1a9b19
2 changed files with 5 additions and 5 deletions

View file

@ -335,7 +335,7 @@
#compose-container .media-preview > * { #compose-container .media-preview > * {
width: 80px; width: 80px;
height: 80px; height: 80px;
object-fit: contain; object-fit: scale-down;
vertical-align: middle; vertical-align: middle;
pointer-events: none; pointer-events: none;
} }
@ -516,7 +516,7 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
max-height: 50vh; max-height: 50vh;
object-fit: contain; object-fit: scale-down;
vertical-align: middle; vertical-align: middle;
} }

View file

@ -769,7 +769,7 @@ body:has(#modal-container .carousel) .status .media img:hover {
.status .media video { .status .media video {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: contain; object-fit: scale-down;
/* border-radius: calc(var(--media-radius) - var(--media-border-width)); */ /* border-radius: calc(var(--media-radius) - var(--media-border-width)); */
border-radius: inherit; border-radius: inherit;
} }
@ -842,7 +842,7 @@ body:has(#modal-container .carousel) .status .media img:hover {
width: fit-content; width: fit-content;
} }
.status .media-contain video { .status .media-contain video {
object-fit: contain !important; object-fit: scale-down !important;
} }
/* .status .media-audio { /* .status .media-audio {
border: 0; border: 0;
@ -1395,7 +1395,7 @@ a.card:is(:hover, :focus) {
width: 1.2em; width: 1.2em;
height: 1.2em; height: 1.2em;
vertical-align: text-bottom; vertical-align: text-bottom;
object-fit: contain; object-fit: scale-down;
} }
/* EDIT HISTORY */ /* EDIT HISTORY */