fix high count of tilt not visible on mobile + consistency

pull/221/head
Aevann 2024-01-12 07:26:08 +02:00
parent 65e643eb38
commit 1c71a1bde9
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@
{% set realbody = c.realbody(v) %}
{% set tilt = c.award_count('tilt', v) %}
<div id="comment-text-{{c.id}}" class="{{c.award_classes(v)}} comment-text mb-0" {% if tilt %}style="transform: rotate({{tilt}}deg);padding-right: {{tilt*10}}px;padding-left: {{tilt*10}}px"{% endif %}>
<div id="comment-text-{{c.id}}" class="{{c.award_classes(v)}} comment-text mb-0" {% if tilt %}style="transform: rotate({{tilt}}deg); padding: min(10vh,{{tilt*4}}px) min(10vw,{{tilt*10}}px)"{% endif %}>
{{realbody | safe}}
</div>

View File

@ -105,7 +105,7 @@
{% if not v_forbid_deleted %}
{% set tilt = p.award_count('tilt', v) %}
<div id="post-body" class="post-body mt-3" {% if tilt %}style="transform: rotate({{tilt}}deg); padding: {{tilt*4}}px {{tilt*10}}px"{% endif %}>
<div id="post-body" class="post-body mt-3" {% if tilt %}style="transform: rotate({{tilt}}deg); padding: min(10vh,{{tilt*4}}px) min(10vw,{{tilt*10}}px)"{% endif %}>
{% if p.realurl(v) and not p.is_image and not p.is_video and not p.is_audio %}
<a rel="noopener" href="{{p.realurl(v)}}" {% if not v or v.newtabexternal %}target="_blank"{% endif %}>
<div class="d-flex justify-content-between align-items-center border rounded p-2 mb-3">