The paper page keeps its exit in reach
Browse files at this commit75600c33d6d6b7d73e1022835b65874fe6c8680cParent: b1d763c- fix
- the paper page keeps its exit in reach
1 changed file +14 -2
- style/_ledger.scss +14 -2
style/_ledger.scssmodified+14 -2
| @@ -269,7 +269,10 @@ | |||
| 269 | [data-ui="ledger"] .modal-scrim:has(> .modal-task) { | 269 | [data-ui="ledger"] .modal-scrim:has(> .modal-task) { |
| 270 | background: var(--bg); | 270 | background: var(--bg); |
| 271 | justify-content: center; | 271 | justify-content: center; |
| 272 | - padding: 36px 40px; | 272 | + // No bottom padding: the sticky foot below carries the page's trailing |
| 273 | + // margin in its own padding, so it can sit flush on the pan surface's edge | ||
| 274 | + // instead of floating with text showing beneath it. | ||
| 275 | + padding: 36px 40px 0; | ||
| 273 | } | 276 | } |
| 274 | 277 | ||
| 275 | [data-ui="ledger"] .modal-task { | 278 | [data-ui="ledger"] .modal-task { |
| @@ -438,8 +441,17 @@ | |||
| 438 | 441 | ||
| 439 | // Composer sits in the flow at the end of the page — the body above is | 442 | // Composer sits in the flow at the end of the page — the body above is |
| 440 | // static, so it simply follows the sections. | 443 | // static, so it simply follows the sections. |
| 444 | +// The page pans, but the way out must not pan with it. The foot and the | ||
| 445 | +// composer hold at the bottom of the paper with the ground under them, so a | ||
| 446 | +// description or a comment run of any length still ends within reach. | ||
| 447 | +[data-ui="ledger"] .detail-foot, | ||
| 441 | [data-ui="ledger"] .comment-composer { | 448 | [data-ui="ledger"] .comment-composer { |
| 442 | - padding: 20px 0 0; | 449 | + position: sticky; |
| 450 | + bottom: 0; | ||
| 451 | + margin-top: 24px; | ||
| 452 | + padding: 16px 0 36px; | ||
| 453 | + background: var(--bg); | ||
| 454 | + border-top: 1px solid var(--border); | ||
| 443 | } | 455 | } |
| 444 | 456 | ||
| 445 | // Settings rail: a narrower column, mono/uppercase stays, the active section | 457 | // Settings rail: a narrower column, mono/uppercase stays, the active section |