uploads: fix stretched images on Safari.
Fix images on the upload page appearing stretched (having the incorrect aspect ratio) when the image is enlarged on Safari. The fix is to set `aspect-ratio` and `height: intrinsic` to ensure the image is the right size. I have no idea how this works or why it's necessary on Safari. Fixes https://danbooru.donmai.us/forum_posts/227099.
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="media-asset-sidebar md:w-360px">
|
||||
<div class="media-asset-sidebar flex-none md:w-360px">
|
||||
<% if @media_asset.ai_tags.present? %>
|
||||
<div>
|
||||
<h3>Tags</h3>
|
||||
|
||||
Reference in New Issue
Block a user