make hole name larger on desktop

pull/203/head
Aevann 2023-09-20 20:09:35 +03:00
parent edb2cd5189
commit 38fd56bd88
2 changed files with 11 additions and 1 deletions

View File

@ -7748,3 +7748,13 @@ body {
p { /* fix the transform:exploit */
overflow: hidden !important;
}
#sub-name {
font-size: max(14px, 1.2vw);
}
@media (min-width: 768px) {
#sub-name {
font-size: 1.5vw;
}
}

View File

@ -103,7 +103,7 @@
</a>
{% if sub %}
<a id="sub-name" href="/h/{{sub}}" class="font-weight-bold ml-2 flex-grow-1 mt-1" {% if sub.name|length >= 17 %}style="font-size:max(10px,1.2vw)"{% else %}style="font-size:max(14px,1.2vw)"{% endif %}>{% if not HOLE_STYLE_FLAIR %}/h/{% endif %}{{sub}}</a>
<a id="sub-name" href="/h/{{sub}}" class="font-weight-bold ml-1 flex-grow-1 mt-1" {% if sub.name|length >= 17 %}style="font-size:max(10px,1.2vw)"{% endif %}>{% if not HOLE_STYLE_FLAIR %}/h/{% endif %}{{sub}}</a>
{% elif has_logo %}
<div id="logo-container" class="flex-grow-1 logo-container">
<a href="/">