Tweak inline upload style
This commit is contained in:
parent
de7f7eef6a
commit
0d51f9de3d
|
@ -83,3 +83,11 @@ a {
|
|||
color: $accent-color;
|
||||
}
|
||||
|
||||
.page-upload {
|
||||
img, video {
|
||||
max-width: 100%;
|
||||
}
|
||||
audio {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) %>" />
|
||||
|
|
Loading…
Reference in New Issue