Tweak inline upload style

This commit is contained in:
Shadowfacts 2021-04-10 22:05:06 -04:00
parent de7f7eef6a
commit 0d51f9de3d
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
2 changed files with 9 additions and 1 deletions

View File

@ -83,3 +83,11 @@ a {
color: $accent-color;
}
.page-upload {
img, video {
max-width: 100%;
}
audio {
width: 100%;
}
}

View File

@ -7,7 +7,7 @@
</div>
<%= for upload <- @page.uploads do %>
<div>
<div class="page-upload">
<%= cond do %>
<% String.starts_with?(upload.content_type, "image/") -> %>
<img src="<%= Routes.page_path(@conn, :get_upload, @page.id, upload.id) %>" />