mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 08:19:05 +00:00
[Glitch] Limit height of tall images in posts
Port 5f33ac208f to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -7644,6 +7644,13 @@ img.modal-warning {
|
|||||||
grid-template-rows: 1fr 1fr;
|
grid-template-rows: 1fr 1fr;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
|
|
||||||
|
&--layout-1 {
|
||||||
|
// The size of single images is determined by their
|
||||||
|
// aspect-ratio, applied via inline style attribute
|
||||||
|
width: initial;
|
||||||
|
max-height: 460px;
|
||||||
|
}
|
||||||
|
|
||||||
&--layout-2 {
|
&--layout-2 {
|
||||||
& > .media-gallery__item:nth-child(1) {
|
& > .media-gallery__item:nth-child(1) {
|
||||||
border-end-end-radius: 0;
|
border-end-end-radius: 0;
|
||||||
|
|||||||
@@ -7460,6 +7460,13 @@ img.modal-warning {
|
|||||||
grid-template-rows: 1fr 1fr;
|
grid-template-rows: 1fr 1fr;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
|
|
||||||
|
&--layout-1 {
|
||||||
|
// The size of single images is determined by their
|
||||||
|
// aspect-ratio, applied via inline style attribute
|
||||||
|
width: initial;
|
||||||
|
max-height: 460px;
|
||||||
|
}
|
||||||
|
|
||||||
&--layout-2 {
|
&--layout-2 {
|
||||||
& > .media-gallery__item:nth-child(1) {
|
& > .media-gallery__item:nth-child(1) {
|
||||||
border-end-end-radius: 0;
|
border-end-end-radius: 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user