Skip to content

Commit

Permalink
fix: Using context class for camera too
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Dec 29, 2022
1 parent 1b05ac1 commit 33b5bdb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions cmd/fibr/static/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ a:hover {
width: var(--icon-size);
}

.icon-bottom {
vertical-align: sub;
}

.icon-large {
height: var(--icon-large);
width: var(--icon-large);
Expand Down
2 changes: 1 addition & 1 deletion cmd/fibr/static/styles/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions cmd/fibr/templates/story.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
{{ if or (.Exif.Geocode.HasAddress) (not .Exif.Date.IsZero) }}
<p class="context">
{{ if .Exif.Geocode.HasAddress }}
<img class="icon icon-bottom margin-right-half" src="{{ url "/svg/location?fill=%23272727" }}" alt="Location">
<img class="icon margin-right-half" src="{{ url "/svg/location?fill=%23272727" }}" alt="Location">
<span class="location">
{{ if index .Exif.Geocode.Address "city_district" }}
{{ index .Exif.Geocode.Address "city_district" }},
Expand All @@ -192,15 +192,15 @@
</span>

{{ if not .Exif.Date.IsZero }}
<img class="icon icon-bottom margin-right-half{{ if .Exif.Geocode.HasAddress }} margin-left-half{{ end }}" src="{{ url "/svg/calendar?fill=%23272727" }}" alt="Location">
<img class="icon margin-right-half{{ if .Exif.Geocode.HasAddress }} margin-left-half{{ end }}" src="{{ url "/svg/calendar?fill=%23272727" }}" alt="Location">
<span class="date">{{ .Exif.Date.Format "Monday _2 January 15:04:05 2006 MST" }}</span>
{{ end }}
</p>
{{ end }}

{{ if index .Exif.Data "Model" }}
<p>
<img class="icon icon-bottom margin-right-half" src="{{ url "/svg/camera?fill=%23272727" }}" alt="Camera model">
<p class="context">
<img class="icon margin-right-half" src="{{ url "/svg/camera?fill=%23272727" }}" alt="Camera model">
{{ index .Exif.Data "Model" }}
</p>
{{ end }}
Expand Down

0 comments on commit 33b5bdb

Please sign in to comment.