forge
Explore
Log in

Don't you dare go Hollow

The paper page keeps its exit in reach

Browse files at this commit

75600c33d6d6b7d73e1022835b65874fe6c8680cAhmet Kaan GümüşParent: b1d763c
  • fix
    • the paper page keeps its exit in reach
Show full message
🎨 fix(web): the paper page keeps its exit in reach

On the ledger skin the detail is a page the scrim pans, so a long
description or a comment run carried Delete task, Close and the composer
off the bottom — you panned to reach them. The foot and the composer
stick to the pan surface's edge on the paper ground now, with the page's
trailing margin moved into their own padding so they sit flush and the
text runs under them.
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 is442 // 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 section457 // Settings rail: a narrower column, mono/uppercase stays, the active section