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:
parent
3d95a65f53
commit
6c855dbaae
@ -29,6 +29,16 @@ div.card-header-title, div.card-header-icon {
|
|||||||
margin-top: 0.75rem;
|
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
|
figure.media-left p.image a img
|
||||||
{
|
{
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
{% if media.description %}
|
{% if media.description %}
|
||||||
title="{{ media.description }}"
|
title="{{ media.description }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
class="image is-128x128">
|
class="image is-max-256">
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user