diff --git a/src/changelog.json b/src/changelog.json index a3239e1..857ae20 100644 --- a/src/changelog.json +++ b/src/changelog.json @@ -1,4 +1,5 @@ [ + { "date": "2026-08-31", "text": "The Log event buttons are grouped into rows now instead of flowing into one grid: 😴 Sleep start and ⏰ Sleep end side by side on their own row, then 🍽️ Ate / πŸ’§ Pee / πŸ’© Poo three across, then βš–οΈ Weigh-in and πŸ“ Note. The two halves of a sleep pair can no longer end up split across a wrap, and no button is left stranded alone on the last row" }, { "date": "2026-08-24", "text": "The timing charts now show the longest gap as well: each bar keeps its solid stretch from the shortest to the typical gap and fades on out to the longest one of the week. To stop the nightly long gap from squashing the daytime range into a sliver, the bars are stretched so the typical gap always sits dead centre β€” left of the middle is sooner than usual, right of it is longer, in every row" }, { "date": "2026-08-24", "text": "Each row of the timing panel is now a small chart instead of a number: the band spans the shortest to the typical gap over the last 7 days, and the marker is how long it has been since the last one. Inside the band means there is time yet, off the right-hand end means the puppy is due β€” and a row with only one event so far says so instead of drawing an empty axis" }, { "date": "2026-08-24", "text": "The timing panel now covers meals too β€” typical and shortest time between them, alongside the pee and poo gaps β€” so you can see the feeding rhythm the same way. It is titled just β€œTiming” now that it is no longer only about bathroom breaks" }, diff --git a/src/index.html b/src/index.html index 3177213..ca0307b 100644 --- a/src/index.html +++ b/src/index.html @@ -108,14 +108,26 @@

Log event

-
- - - - - - - + +
+
+ + +
+
+ + + +
+
+ + +
diff --git a/src/style.css b/src/style.css index df2417b..d79c0cb 100644 --- a/src/style.css +++ b/src/style.css @@ -183,6 +183,9 @@ body::before { } /* Keep the single row intact on narrow phones. */ @media (max-width: 370px) { + /* Three columns leave ~55px of text room on the narrowest phones; trimming + the side padding keeps "🍽️ Ate" on one line instead of wrapping. */ + .action-row.three-up button { padding-left: 6px; padding-right: 6px; } .day-bar { gap: 4px; } .day-bar button:not(.bar-clock) { padding: 8px 7px; } .bar-clock { font-size: 0.9rem; padding: 6px 8px; gap: 5px; } @@ -242,11 +245,20 @@ body::before { .big-clock.awake { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent) 10%, var(--surface))); } .big-clock.awake .bc-time { color: var(--accent); } -.grid { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); +/* Quick actions: a stack of explicit rows (see index.html) instead of one + auto-fit grid, so the grouping is the same at every width. Equal columns + within a row, two by default and three for the short-labelled moments. */ +.actions { + display: flex; + flex-direction: column; gap: 10px; } +.action-row { + display: grid; + grid-template-columns: repeat(2, 1fr); + gap: 10px; +} +.action-row.three-up { grid-template-columns: repeat(3, 1fr); } button { font: inherit;