[bug fixes] fixed typos in the new tmpls

This commit is contained in:
2026-03-11 03:49:41 +01:00
parent 948bbf74d1
commit 79ffdd7018
2 changed files with 9 additions and 4 deletions

View File

@@ -13,8 +13,8 @@
justify-content: center;
height: 100vh;
}
.countdown-item.hidden {
display: none;
.countdown-item[data-hidden="true"] {
display: none;
}
{% for c in countdowns %}
#timer-{{ c.id }} {

View File

@@ -2,10 +2,15 @@
{% for c in countdowns %}
<div
id="countdown-{{ c.id }}"
class="countdown-item{% if hide_idle and c.state == 'Idle' %}hidden{% endif %}"
class="countdown-item"
data-hidden="{{ hide_idle and c.state == 'Idle' }}"
>
{% if c.icon %}
<img id="icon-{{ c.id }}" src="{{ c.icon }}" alt="{{ c.name }}" />
<img
id="icon-{{ c.id }}"
src="/static/icons/{{ c.icon }}"
alt="{{ c.name }}"
/>
{% endif %}
<span
id="timer-{{ c.id }}"