1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-11-02 16:37:19 -04:00

Make image previews keep aspect ratio of original, and larger max size.

This commit is contained in:
Jason McBrayer 2018-05-30 12:44:53 -04:00
parent 3d95a65f53
commit 6c855dbaae
2 changed files with 11 additions and 1 deletions

View File

@ -29,6 +29,16 @@ div.card-header-title, div.card-header-icon {
margin-top: 0.75rem;
}
.is-max-128 {
max-height: 128px;
max-width: 128px;
}
.is-max-256 {
max-height: 256px;
max-width: 256px;
}
figure.media-left p.image a img
{
border-radius: 5px;

View File

@ -71,7 +71,7 @@
{% if media.description %}
title="{{ media.description }}"
{% endif %}
class="image is-128x128">
class="image is-max-256">
</a>
{% endfor %}
</div>