fix: overflow when the gallery is inside other containers [skip ci]

Fix the fix in #2653

This is a simple fix, hopefully it will be fully resolved in the future.
This commit is contained in:
ZhenShuo Leo
2025-12-23 02:20:00 +08:00
parent f3e91168d9
commit 7a1cfbb75d
4 changed files with 4 additions and 5 deletions

View File

@@ -4390,7 +4390,7 @@ pre {
}
@media (width < 853px) {
.width-patch {
width: 90vw;
width: 80vw;
}
}
@media (width >= 853px) {

View File

@@ -203,7 +203,7 @@ pre {
/* placeholder for gallery/carousel */
@variant max-md {
.width-patch {
width: 90vw;
width: 80vw;
}
}
@variant min-md {

View File

@@ -19,7 +19,7 @@
{{ end }}
<div class="width-patch"></div>
{{ if not .Parent }}<div class="width-patch"></div>{{ end }}
<div
id="{{ $id }}"
class="relative"

View File

@@ -25,8 +25,7 @@
{{ end -}}
{{ end -}}
<div class="width-patch"></div>
{{ if not .Parent }}<div class="width-patch"></div>{{ end }}
<div id="{{- $id -}}" class="gallery">
{{ $content | safeHTML -}}
</div>