fix: gallery and carousel wouldn't show without other statically sized elements

This commit is contained in:
ZhenShuo Leo
2025-12-15 17:26:37 +08:00
parent 1be60f89da
commit 4422c4b517
4 changed files with 25 additions and 14 deletions

View File

@@ -198,6 +198,18 @@ pre {
box-shadow: 5px 5px 20px 1px rgba(0, 0, 0, 0.3);
}
/* placeholder for gallery/carousel */
@variant max-md {
.width-patch {
width: 90vw;
}
}
@variant min-md {
.width-patch {
width: 65ch;
}
}
.anchor {
display: block;
position: relative;