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
+1 -1
View File
@@ -4390,7 +4390,7 @@ pre {
} }
@media (width < 853px) { @media (width < 853px) {
.width-patch { .width-patch {
width: 90vw; width: 80vw;
} }
} }
@media (width >= 853px) { @media (width >= 853px) {
+1 -1
View File
@@ -203,7 +203,7 @@ pre {
/* placeholder for gallery/carousel */ /* placeholder for gallery/carousel */
@variant max-md { @variant max-md {
.width-patch { .width-patch {
width: 90vw; width: 80vw;
} }
} }
@variant min-md { @variant min-md {
+1 -1
View File
@@ -19,7 +19,7 @@
{{ end }} {{ end }}
<div class="width-patch"></div> {{ if not .Parent }}<div class="width-patch"></div>{{ end }}
<div <div
id="{{ $id }}" id="{{ $id }}"
class="relative" class="relative"
+1 -2
View File
@@ -25,8 +25,7 @@
{{ end -}} {{ end -}}
{{ end -}} {{ end -}}
{{ if not .Parent }}<div class="width-patch"></div>{{ end }}
<div class="width-patch"></div>
<div id="{{- $id -}}" class="gallery"> <div id="{{- $id -}}" class="gallery">
{{ $content | safeHTML -}} {{ $content | safeHTML -}}
</div> </div>