Fix wrong height set for single media inside carousel status

This commit is contained in:
Lim Chee Aun 2023-08-09 13:29:31 +08:00
parent 0ca29cb181
commit 79aa3faf51

View file

@ -814,14 +814,14 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
.status-carousel .content-container .content:only-child { .status-carousel .content-container .content:only-child {
font-size: calc(100% + 25% * max(2 - var(--content-text-weight), 0)); font-size: calc(100% + 25% * max(2 - var(--content-text-weight), 0));
} }
.status-carousel /* .status-carousel
.content-container[data-content-text-weight='1'] .content-container[data-content-text-weight='1']
.media-container.media-eq1 { .media-container.media-eq1 {
/* LOL, this is madness, reading a value from the style attribute * / /* LOL, this is madness, reading a value from the style attribute * /
height: auto; height: auto;
min-height: 160px; min-height: 160px;
max-height: max(160px, 50vh); max-height: max(160px, 50vh);
} } */
.status-carousel.boosts-carousel { .status-carousel.boosts-carousel {
--carousel-color: var(--reblog-color); --carousel-color: var(--reblog-color);
--carousel-faded-color: var(--reblog-faded-color); --carousel-faded-color: var(--reblog-faded-color);