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

@@ -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>