Merge pull request #2653 from ZhenShuo2021/fix/gallery

🐛 Fix: gallery and carousel no width
This commit is contained in:
Nuno C.
2025-12-22 17:10:44 +00:00
committed by GitHub
4 changed files with 25 additions and 14 deletions

View File

@@ -19,6 +19,7 @@
{{ end }}
<div class="width-patch"></div>
<div
id="{{ $id }}"
class="relative"
@@ -49,9 +50,7 @@
data-twe-carousel-item
style="transition-duration: {{ $interval }}ms;"
{{ if eq $index 0 }}data-twe-carousel-active{{ end }}>
<div
class="single_hero_background"
style="aspect-ratio: {{ $aspectx }} / {{ $aspecty }};">
<div class="single_hero_background" style="aspect-ratio: {{ $aspectx }} / {{ $aspecty }};">
<img
src="{{ $image.RelPermalink }}"
class="block absolute top-0 object-cover w-full h-full not-prose nozoom"

View File

@@ -26,6 +26,7 @@
{{ end -}}
<div class="width-patch"></div>
<div id="{{- $id -}}" class="gallery">
{{ $content | safeHTML -}}
</div>