Fix the iOS install sheet: exact Safari flow, chips, iOS blue, layout
Steps - iOS now uses the exact flow: Safari users get 4 steps (⋯ → Share/More → Add to Home Screen → Add); non-Safari (CriOS/FxiOS/EdgiOS/in-app) get a first 'Open this page in Safari' step and 5 total. The vague 'in some browsers it's under…' wording is gone. Chips and icons - The ⋯ chip renders a single three-dot icon (icon-only pill) instead of the icon plus an '⋯' character (which showed two sets of dots). - The More chip uses a chevron-down icon instead of the rounded-square. - The accent pill uses real iOS blue: #0A84FF dark / #007AFF light, still the only coloured element. - Steps and chips share one 16px type scale; chip labels are medium weight. Typography and layout - Numbers are small muted circles in a fixed 24px column, aligned with the first text line via matching line-height. - Removed trailing periods after chips; steps tightened. - Bottom padding is calc(24px + env(safe-area-inset-bottom)) and a secondary 'Maybe later' button sits below the steps. - max-height 90dvh with inner scrolling; 36×4px low-contrast handle with real swipe-down-to-close (momentum off, spring back). - App card shows the hostname only (no port), truncated. Themes - Dark (default): layered surfaces #1c1c1e sheet / #2c2c2e card / #3a3a3c chips with 8% white borders; subtle logo tile instead of solid white; backdrop is 50% black with 4px blur. - Light only when the app theme was explicitly set to light, ignoring the system preference; borders #e0e0e0, chip fills #f2f2f2. Also fixes a crash the test pressure exposed: a 429 (rate-limited) /api/health response crashed Settings at health.vision.available. fetchHealth now rejects non-OK/malformed responses so the dialog shows its error banner instead of the app error screen. Install-sheet suite now 64 checks; pwa/final-ux/security/contrast green.
This commit is contained in:
parent
26e36bc0c0
commit
f98795436d
4 changed files with 85 additions and 39 deletions
|
|
@ -307,13 +307,10 @@ export function EllipsisIcon({ className }: IconProps) {
|
|||
);
|
||||
}
|
||||
|
||||
export function MoreIcon({ className }: IconProps) {
|
||||
export function ChevronDownIcon({ className }: IconProps) {
|
||||
return (
|
||||
<Svg className={className}>
|
||||
<rect x="3.5" y="3.5" width="17" height="17" rx="5" />
|
||||
<circle cx="8.4" cy="12" r="1.2" fill="currentColor" stroke="none" />
|
||||
<circle cx="12" cy="12" r="1.2" fill="currentColor" stroke="none" />
|
||||
<circle cx="15.6" cy="12" r="1.2" fill="currentColor" stroke="none" />
|
||||
<path d="m6 9.5 6 6 6-6" />
|
||||
</Svg>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue