Make the timer pill bigger and put it first in the day bar

This commit is contained in:
Alexander Heldt
2026-07-13 20:50:41 +00:00
parent a0e084dae8
commit 695c030f33
3 changed files with 8 additions and 7 deletions
+1
View File
@@ -1,4 +1,5 @@
[ [
{ "date": "2026-07-13", "text": "The awake/asleep timer is bigger and sits first in the top bar" },
{ "date": "2026-07-13", "text": "The sleep, daily counts and food charts now cover the last 14 days instead of 7" }, { "date": "2026-07-13", "text": "The sleep, daily counts and food charts now cover the last 14 days instead of 7" },
{ "date": "2026-07-13", "text": "The awake/asleep timer lives in the frozen top bar" }, { "date": "2026-07-13", "text": "The awake/asleep timer lives in the frozen top bar" },
{ "date": "2026-07-13", "text": "The day picker is a bar frozen at the top of the page" }, { "date": "2026-07-13", "text": "The day picker is a bar frozen at the top of the page" },
+4 -4
View File
@@ -78,16 +78,16 @@
<main> <main>
<section class="day-bar"> <section class="day-bar">
<button type="button" id="day-prev" class="ghost" aria-label="Previous day"></button>
<input type="date" id="day-picker" />
<button type="button" id="day-today" class="ghost">Today</button>
<button type="button" id="day-next" class="ghost" aria-label="Next day"></button>
<!-- Compact asleep/awake counter (the old big clock); hidden until a <!-- Compact asleep/awake counter (the old big clock); hidden until a
sleep event exists. Hover/long-press shows "since" via title. --> sleep event exists. Hover/long-press shows "since" via title. -->
<div id="bar-clock" class="bar-clock" hidden> <div id="bar-clock" class="bar-clock" hidden>
<span id="bar-clock-icon" aria-hidden="true"></span> <span id="bar-clock-icon" aria-hidden="true"></span>
<span id="bar-clock-time"></span> <span id="bar-clock-time"></span>
</div> </div>
<button type="button" id="day-prev" class="ghost" aria-label="Previous day"></button>
<input type="date" id="day-picker" />
<button type="button" id="day-today" class="ghost">Today</button>
<button type="button" id="day-next" class="ghost" aria-label="Next day"></button>
</section> </section>
<section class="quick-actions"> <section class="quick-actions">
+3 -3
View File
@@ -162,11 +162,11 @@ body::before {
.bar-clock { .bar-clock {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 6px; gap: 8px;
padding: 7px 12px; padding: 8px 16px;
border-radius: 999px; border-radius: 999px;
font-weight: 700; font-weight: 700;
font-size: 0.9rem; font-size: 1.15rem;
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
flex-shrink: 0; flex-shrink: 0;
} }