Fix home heading clipping and reset notebook page scrolling
This commit is contained in:
+2
-1
@@ -248,6 +248,7 @@ Content pipelines:
|
||||
|
||||
- All visible handwriting uses `hand(size)` (`MaraHand` → Dancing Script). Colours live in `lib/ui/paper.dart`: `ink` `#36413c`, `blue` `#274956`, `muted` `#796b55`, `cream` `#f3e7cc`, `amber` `#e0b568`.
|
||||
- `writing()` adds paper spacing; `folio()` is the small blue label above a leaf's content.
|
||||
- The home folio stays above the scroll viewport so its lettering remains fully visible during scrolling; the title, illustrations and actions scroll below it.
|
||||
- `InkButton` is the only button style: transparent, underlined ink text, minimum 48 px touch target, optional `primary` emphasis, wrapped in `PageSwipeBlocker`.
|
||||
|
||||
### Paper and leaves
|
||||
@@ -255,7 +256,7 @@ Content pipelines:
|
||||
- `Paper` draws `assets/artwork/mara-single-page-v2.png` (1024×1536). Portrait scales to fit both dimensions; landscape scales to width, so the sheet is cropped vertically.
|
||||
- Content area: portrait `x 11%–83%`, `y 12%–91%` of the sheet (8%–91% when narrower than 480 px); landscape `x 10%–83%`, `y 6%–94%` of the viewport.
|
||||
- A page turns when a horizontal drag ends with `|dx| ≥ 48` and `|dx| > 1.3·|dy|`. `PageSwipeBlocker` installs a descendant horizontal recogniser so grid/button drags never reach the page; taps and vertical drags still pass through.
|
||||
- `Leaf` is the standard page body: a scrolling column in portrait, and `wideBody` in landscape when supplied. The footer stays pinned. Scroll keys are `leaf-scroll` (portrait) and `leaf-side-scroll` (landscape side column).
|
||||
- `Leaf` is the standard page body: a scrolling column in portrait, and `wideBody` in landscape when supplied. The footer stays pinned. Scroll keys are `leaf-scroll` (portrait) and `leaf-side-scroll` (landscape side column). These are ordinary value keys: opening or revisiting a leaf always starts at the top, without restoring a saved scroll offset. Both panes include top padding for handwriting ascenders.
|
||||
- `Cover` is the tappable notebook cover on the home screen. `Sketch` draws pencil props (`match`, `envelope`).
|
||||
|
||||
### Puzzle board
|
||||
|
||||
Reference in New Issue
Block a user