Fix featured art on mobile

This commit is contained in:
Joshua Goins 2023-03-06 21:49:04 -05:00
parent 654fdc0ac2
commit 3bfe4ec343
2 changed files with 11 additions and 1 deletions

View file

@ -26,6 +26,11 @@
body {
max-width: 100em;
}
.featured-art {
height: 256px;
width: auto;
}
}
/* mobile devices */
@ -55,6 +60,11 @@
footer {
margin: 5px;
}
.featured-art {
height: auto;
width: 100%;
}
}
body {

View file

@ -20,7 +20,7 @@
<a href="{{ $path }}" aria-label="Click to view details">
{{ $title := .title }}
{{ with resources.Get (printf "art/%s" .filename) }}
<img class="gallery-img" style="height: 256px; width: auto;" alt="{{ $title }}" width="{{ .Width }}" height="{{ .Height }}" src="{{ .Permalink }}"/>
<img class="gallery-img featured-art" alt="{{ $title }}" width="{{ .Width }}" height="{{ .Height }}" src="{{ .Permalink }}"/>
{{ else }}
<p>Thumbnail not found!</p>
{{ end }}