tinker with image heights a little

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-13 19:00:50 +02:00
parent fdbc2d2f2c
commit 8a5d2ad9f8
3 changed files with 3 additions and 3 deletions

View File

@ -253,7 +253,7 @@
{% block Banner %}
{% if '@' not in request.path %}
{% if sub %}
<img alt="/h/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:25vw">
<img alt="/h/{{sub.name}} banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{sub.banner_url}}')" loading="lazy" src="{{sub.banner_url}}" width=100% style="object-fit:cover;max-height:min(30vh,30vw)!important">
{% elif SITE_NAME == 'rDrama' %}
{% set path = "assets/images/" + SITE_NAME + "/banners" %}
{% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=25' %}

View File

@ -359,7 +359,7 @@
<div class="container-fluid pb-0 text-center bg-white d-md-none" style="margin-top:-6px;border-radius:0!important;">
<div class="row">
<div class="col px-0">
<img alt="@{{u.username}}'s banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{u.banner_url}}')" loading="lazy" src="{{u.banner_url}}" width=100% style="object-fit:cover;max-height:50vw!important">
<img alt="@{{u.username}}'s banner" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{u.banner_url}}')" loading="lazy" src="{{u.banner_url}}" width=100% style="object-fit:cover;max-height:30vh!important">
</div>
</div>
<div class="row border-bottom">

View File

@ -1,6 +1,6 @@
{%-
set CACHE_VER = {
'css/main.css': 303,
'css/main.css': 304,
'css/4chan.css': 60,
'css/classic.css': 59,