Skip to content
Snippets Groups Projects
Unverified Commit 431c00bd authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Merge pull request #229 from noesya/gallery-figcaption-fix

Gallery block figcaption fix
parents b97d5505 d6c7e8ab
No related branches found
Tags v7.2.6
No related merge requests found
...@@ -104,6 +104,10 @@ ...@@ -104,6 +104,10 @@
height: 70vh height: 70vh
width: auto width: auto
max-width: none max-width: none
figcaption
margin-top: space(3)
> * + *
margin-top: space(2)
&__arrows &__arrows
margin-left: px2rem(-18) margin-left: px2rem(-18)
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
{{ if or .text .credit }} {{ if or .text .credit }}
<figcaption> <figcaption>
{{ if .text }} {{ if .text }}
<div>{{ partial "PrepareHTML" .text }}</div> <p>{{ partial "PrepareText" .text }}</p>
{{ end }} {{ end }}
{{ if .credit }} {{ if .credit }}
<div class="credit">{{ partial "PrepareHTML" .credit }}</div> <div class="credit">{{ partial "PrepareText" .credit }}</div>
{{ end }} {{ end }}
</figcaption> </figcaption>
{{ end }} {{ end }}
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{{ end }} {{ end }}
{{ if .text }} {{ if .text }}
<figcaption> <figcaption>
{{- partial "PrepareHTML" .text -}} <p>{{- partial "PrepareText" .text -}}</p>
</figcaption> </figcaption>
{{ end }} {{ end }}
</figure> </figure>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment