Skip to content

Commit

Permalink
fix(story): Fixing alignment and margin for icons
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Nov 23, 2023
1 parent 31aff5c commit ba62fb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/fibr/templates/story.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
<p class="context">
{{ if .Exif.Geocode.HasAddress }}
<img class="icon margin-right-half" src="{{ url "/svg/location?fill=%23000000" }}" alt="location">
<span class="location">
<span>
{{ if index .Exif.Geocode.Address "city_district" }}
{{ index .Exif.Geocode.Address "city_district" }},
{{ else }}
Expand Down Expand Up @@ -225,12 +225,12 @@
{{ index .Exif.Data "Model" }}

{{ if index .Exif.Data "FocalLength" }}
<img class="icon margin-right-half" src="{{ url "/svg/lens?fill=%23000000" }}" alt="lens">
<img class="icon margin-left-half margin-right-half" src="{{ url "/svg/lens?fill=%23000000" }}" alt="lens">
{{ index .Exif.Data "FocalLength" }}
{{ end }}

{{ if index .Exif.Data "Aperture" }}
<img class="icon margin-right-half" src="{{ url "/svg/aperture?fill=%23000000" }}" alt="aperture">
<img class="icon margin-left-half margin-right-half" src="{{ url "/svg/aperture?fill=%23000000" }}" alt="aperture">
f/{{ index .Exif.Data "Aperture" }}
{{ end }}
</p>
Expand Down

0 comments on commit ba62fb0

Please sign in to comment.