mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
Merge remote-tracking branch 'origin/release/v1.46.0' into feat/v146-ai
# Conflicts: # src/__tests__/baselines/source-file-lines.json
This commit is contained in:
commit
cf7302b50a
38 files changed
+1118
-268
No files matched your search
@@ -333,6 +333,11 @@ describe("GET /api/analytics", () => {
|
||||
slope30: -0.02,
|
||||
r2_30: 0.3,
|
||||
r2_90: 0.2,
|
||||
// Twelve readings on twelve days across the month.
|
||||
days7: 3,
|
||||
span7: 5,
|
||||
days30: 12,
|
||||
span30: 27,
|
||||
},
|
||||
] as never)
|
||||
.mockResolvedValueOnce([
|
||||
|
||||
+27
-8
@@ -631,10 +631,13 @@ body,
|
||||
* owns the shell's bottom edge (the rail, `<main>`, the bottom bar, the
|
||||
* Coach button). It is `env()` everywhere it matters; a test that needs an
|
||||
* inset no desktop browser reports sets it instead
|
||||
* (`e2e/tablet-shell.spec.ts`).
|
||||
* (`e2e/tablet-shell.spec.ts`). The side insets are read the same way, by
|
||||
* the shell and the rail (`.shell-safe-area` below).
|
||||
*/
|
||||
:root {
|
||||
--safe-area-bottom: env(safe-area-inset-bottom, 0px);
|
||||
--safe-area-left: env(safe-area-inset-left, 0px);
|
||||
--safe-area-right: env(safe-area-inset-right, 0px);
|
||||
}
|
||||
html[data-scroll="body"] {
|
||||
scrollbar-gutter: stable;
|
||||
@@ -691,18 +694,34 @@ body,
|
||||
@layer components {
|
||||
/*
|
||||
* `.shell-safe-area` — the authenticated app shell's share of the installed
|
||||
* app's safe area (see the note in `auth-shell.tsx`). The shell takes the top
|
||||
* and side insets as padding, and the strip behind the status bar is painted
|
||||
* in the chrome colour (`--card`, the top bar and the sidebar) rather than
|
||||
* the page colour, so the status bar reads as part of the bar beneath it. A
|
||||
* zero inset makes the gradient zero tall: nothing changes in a browser tab.
|
||||
* app's safe area (see the note in `auth-shell.tsx`). The shell takes the
|
||||
* top inset as padding (and the side insets in the phone shell), and the
|
||||
* strip behind the status bar is painted in the chrome colour (`--card`,
|
||||
* the top bar and the sidebar) rather than the page colour, so the status
|
||||
* bar reads as part of the bar beneath it. A zero inset makes the gradient
|
||||
* zero tall.
|
||||
*
|
||||
* The side insets are not always zero in a browser tab: an iPad in a Safari
|
||||
* tab laid the shell out 10 px in from the left edge in portrait, with
|
||||
* Safari's own toolbar buttons moved in by the same 10 px. Padded here, that
|
||||
* inset showed the page colour in a strip left of the rail, from the logo
|
||||
* band down to the account row, and cut the rail's band borders short of the
|
||||
* edge. So the desktop shell leaves the sides to what meets them: the rail
|
||||
* takes the left inset inside its own background (`sidebar-nav.tsx`), and
|
||||
* on the right the top bar and `<main>` run to the edge with gutters wider
|
||||
* than any tablet's side inset. The phone shell has no rail and keeps them
|
||||
* here.
|
||||
*/
|
||||
.shell-safe-area {
|
||||
padding-top: env(safe-area-inset-top, 0px);
|
||||
padding-right: env(safe-area-inset-right, 0px);
|
||||
padding-left: env(safe-area-inset-left, 0px);
|
||||
padding-right: var(--safe-area-right);
|
||||
padding-left: var(--safe-area-left);
|
||||
background: linear-gradient(var(--card), var(--card)) top / 100%
|
||||
env(safe-area-inset-top, 0px) no-repeat;
|
||||
@variant shell-desktop {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user