mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
fix: gallery and carousel wouldn't show without other statically sized elements
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
{{ end -}}
|
||||
|
||||
|
||||
<div class="width-patch"></div>
|
||||
<div id="{{- $id -}}" class="gallery">
|
||||
{{ $content | safeHTML -}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user