mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +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);
|
--outline-focus-default: 2px solid var(--color-text-brand);
|
||||||
--avatar-border-radius: 8px;
|
--avatar-border-radius: 8px;
|
||||||
|
--max-media-height-small: 460px;
|
||||||
|
--max-media-height-large: 566px;
|
||||||
|
|
||||||
// Variable for easily inverting directional UI elements,
|
// Variable for easily inverting directional UI elements,
|
||||||
--text-x-direction: 1;
|
--text-x-direction: 1;
|
||||||
|
|||||||
@@ -7464,7 +7464,18 @@ img.modal-warning {
|
|||||||
// The size of single images is determined by their
|
// The size of single images is determined by their
|
||||||
// aspect-ratio, applied via inline style attribute
|
// aspect-ratio, applied via inline style attribute
|
||||||
width: initial;
|
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 {
|
&--layout-2 {
|
||||||
@@ -7817,7 +7828,7 @@ img.modal-warning {
|
|||||||
position: relative;
|
position: relative;
|
||||||
color: var(--color-text-on-media);
|
color: var(--color-text-on-media);
|
||||||
background: var(--color-bg-media);
|
background: var(--color-bg-media);
|
||||||
max-height: 460px;
|
max-height: var(--max-media-height-small);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -7833,6 +7844,10 @@ img.modal-warning {
|
|||||||
|
|
||||||
@include fullwidth-gallery;
|
@include fullwidth-gallery;
|
||||||
|
|
||||||
|
@container (width > 500px) {
|
||||||
|
max-height: var(--max-media-height-large);
|
||||||
|
}
|
||||||
|
|
||||||
video {
|
video {
|
||||||
display: block;
|
display: block;
|
||||||
max-width: 100vw; // TODO: might be able to delete this
|
max-width: 100vw; // TODO: might be able to delete this
|
||||||
|
|||||||
Reference in New Issue
Block a user