mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-12 23:38:20 +00:00
[Glitch] Increase maximum height of media items on desktop
Port ce22c835ac to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -10,6 +10,8 @@ html {
|
||||
|
||||
--outline-focus-default: 2px solid var(--color-text-brand);
|
||||
--avatar-border-radius: 8px;
|
||||
--max-media-height-small: 460px;
|
||||
--max-media-height-large: 566px;
|
||||
|
||||
// Variable for easily inverting directional UI elements,
|
||||
--text-x-direction: 1;
|
||||
|
||||
@@ -7464,7 +7464,18 @@ img.modal-warning {
|
||||
// The size of single images is determined by their
|
||||
// aspect-ratio, applied via inline style attribute
|
||||
width: initial;
|
||||
max-height: 460px;
|
||||
|
||||
// Prevent extremely tall images from essentially becoming invisible
|
||||
min-width: 120px;
|
||||
max-height: var(--max-media-height-small);
|
||||
|
||||
@container (width > 500px) {
|
||||
max-height: var(--max-media-height-large);
|
||||
}
|
||||
|
||||
.detailed-status & {
|
||||
max-height: calc(2 * var(--max-media-height-large));
|
||||
}
|
||||
}
|
||||
|
||||
&--layout-2 {
|
||||
@@ -7817,7 +7828,7 @@ img.modal-warning {
|
||||
position: relative;
|
||||
color: var(--color-text-on-media);
|
||||
background: var(--color-bg-media);
|
||||
max-height: 460px;
|
||||
max-height: var(--max-media-height-small);
|
||||
border-radius: 8px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
@@ -7833,6 +7844,10 @@ img.modal-warning {
|
||||
|
||||
@include fullwidth-gallery;
|
||||
|
||||
@container (width > 500px) {
|
||||
max-height: var(--max-media-height-large);
|
||||
}
|
||||
|
||||
video {
|
||||
display: block;
|
||||
max-width: 100vw; // TODO: might be able to delete this
|
||||
|
||||
Reference in New Issue
Block a user