This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
fix(settings): keep unsaved save actions visible at compact sizes - #65
Merged
Merged
Conversation
The dirty-state save/discard bar rendered inside the scrolling Settings surface, whose .fade-up entrance animation gives it a transform and therefore makes it a containing block for position: fixed descendants. The bar was positioned and clipped relative to that scroller instead of the app viewport, so it disappeared at compact window sizes. Move the dirty-state actions to the app overlay layer (a sibling of .app, like the existing nav-away dialog) so they stay fixed to the viewport at every window size. The header Save button is now visible and disabled while clean, and hidden (without shifting layout) while dirty, so exactly one primary Save action is presented at a time. The overlay shows the full unsaved-indicator/Discard/Save dock at wide widths and a labeled Save pill at compact widths (existing 700px breakpoint); discard stays reachable via the navigation-away guard. Extract the clean/dirty visibility rule into a pure settingsSaveDisplayState function shared by the header button and the overlay, so PickScribe #45 has a single tested seam to port. Extend the browser-preview smoke with a headless-Chromium regression at the issue's exact repro sizes (937x747, 1344x951) asserting the overlay stays within viewport bounds. No feature flag: self-contained UX correction shipping in the next release, as scoped by the issue.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.fade-upentrance animation retains a transform (fill-mode: both), making.contenta permanent CSS containing block forposition: fixeddescendants — the old in-Settings save bar clipped against the scroller at compact sizessettingsSaveDisplayState(dirty)is the single source of truth (header save hidden+overlay shown when dirty, header visible+disabled when clean, never both) — the port seam for PickScribe Prototype a permission-gated Grok usage extractor #45Closes #47. Follow-up filed: #64 (pre-existing discard-during-save race, surfaced in review, not introduced here).
Validation
Local review: standard risk class — one independent UI-correctness reviewer; verdict clean (two P3s: dead label fixed in
532b0a5, discard race deferred as #64). KISS keep.