Remplace « Arrêter » par un picto stop dans le timer
Bouton rond avec l'icône stop ; en mobile, l'horloge et le stop passent sous la description, côte à côte, sans déborder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
262ab07b03
commit
f612dbd764
2 files changed
+5
-2
No files matched your search
+3
-1
@@ -123,6 +123,8 @@ a.btn { color: var(--text); text-decoration: none; }
|
||||
.timer-start { margin-top: .35rem; font-size: .9rem; }
|
||||
.timer-start input { width: 11rem; }
|
||||
.clock { font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
|
||||
.btn.icon.timer-stop { width: 3rem; height: 3rem; border-radius: 50%; }
|
||||
.timer-stop svg { width: 20px; height: 20px; }
|
||||
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: .5rem; }
|
||||
.note { color: var(--muted); font-size: .9rem; }
|
||||
|
||||
@@ -188,7 +190,7 @@ input[type="color"] {
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.current { grid-template-columns: 1fr auto; }
|
||||
.current .btn { grid-column: 1 / -1; }
|
||||
.current-label { grid-column: 1 / -1; min-width: 0; }
|
||||
.start { grid-template-columns: 1fr; }
|
||||
.report .label { width: auto; }
|
||||
.bar-cell { width: 30%; }
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
{% import "_icons.html" as icons %}
|
||||
<section id="timer" hx-get="/ui/timer" hx-trigger="timer-changed from:body" hx-swap="outerHTML" class="card timer{% if running.is_some() %} is-running{% endif %}"{% if let Some(e) = running %} style="--color: {{ e.color }}"{% endif %}>
|
||||
{% if let Some(e) = running %}
|
||||
<div class="current">
|
||||
@@ -11,7 +12,7 @@
|
||||
</form>
|
||||
</div>
|
||||
<div class="clock" data-started="{{ e.started_rfc3339() }}">{{ e.duration() }}</div>
|
||||
<button class="btn danger" hx-post="/ui/timer/stop" hx-target="#timer" hx-swap="outerHTML">Arrêter</button>
|
||||
<button class="btn icon danger timer-stop" hx-post="/ui/timer/stop" hx-target="#timer" hx-swap="outerHTML" title="Arrêter" aria-label="Arrêter le timer">{% call icons::icon("stop") %}{% endcall %}</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if groups.is_empty() %}
|
||||
|
||||
Reference in new issue
Block a user