-
- if may_write {
-
- } else {
-
-
- (detail.column.name.clone())
-
- }
-
-
- (t(lang, Key::Esc))
- (glyph::cross(cx).await?)
- (format!("<- {}", t(lang, Key::NavBoard)))
-
+ // Key, title, state and the tabs ride together as one masthead:
+ // pinned, so the task still names itself at the 200th comment.
+
if tab == Tab::Task {
diff --git a/style/_ledger.scss b/style/_ledger.scss
index ff2a301..0e998ad 100644
--- a/style/_ledger.scss
+++ b/style/_ledger.scss
@@ -269,10 +269,10 @@
[data-ui="ledger"] .modal-scrim:has(> .modal-task) {
background: var(--bg);
justify-content: center;
- // No bottom padding: the sticky foot below carries the page's trailing
- // margin in its own padding, so it can sit flush on the pan surface's edge
- // instead of floating with text showing beneath it.
- padding: 36px 40px 0;
+ // Neither top nor bottom padding: the sticky masthead and foot carry the
+ // page's margins in their own padding, so both sit flush on the pan
+ // surface's edges instead of floating with text showing past them.
+ padding: 0 40px;
}
[data-ui="ledger"] .modal-task {
@@ -306,6 +306,16 @@
margin-top: 14px;
}
+// The masthead holds at the top of the paper: the task names itself however
+// far down the comments you are.
+[data-ui="ledger"] .detail-mast {
+ position: sticky;
+ top: 0;
+ z-index: 2;
+ padding: 36px 0 6px;
+ background: var(--bg);
+}
+
[data-ui="ledger"] .modal-task .detail-esc,
[data-ui="ledger"] .modal-task .detail-close,
[data-ui="ledger"] .detail-body .detail-field-status {
diff --git a/style/main.scss b/style/main.scss
index 90edbfe..def6f55 100644
--- a/style/main.scss
+++ b/style/main.scss
@@ -1088,6 +1088,10 @@ img.avatar {
overflow: visible;
}
+.detail-mast {
+ flex: none;
+}
+
.detail-body {
flex: 1;
min-height: 0;