Image gallery size fixes

This commit is contained in:
Zoltan Hosszu
2026-03-17 10:39:40 +01:00
committed by Mike Dalessio
parent fc18ba8e07
commit 24446afba7
2 changed files with 16 additions and 3 deletions
+2 -3
View File
@@ -3,8 +3,8 @@
block-size: auto;
display: block;
inline-size: fit-content;
position: relative;
max-inline-size: 100%;
position: relative;
progress {
inline-size: 100%;
@@ -35,8 +35,7 @@
@supports (field-sizing: content) {
field-sizing: content;
inline-size: auto;
min-inline-size: 20ch;
inline-size: 100%;
}
}
}
+14
View File
@@ -188,4 +188,18 @@
.attachment {
margin-inline: 0;
}
.attachment-gallery {
.attachment {
display: inline-block;
inline-size: calc(33.333% - 0.8ch);
}
&.attachment-gallery--2,
&.attachment-gallery--4 {
.attachment {
inline-size: calc(50% - 0.8ch);
}
}
}
}