- for person in &detail.assignees {
- (assignee_chip(cx, &detail.id, person, may_write, lang).await?)
- }
-
+ (title_control(cx, &detail, may_write, lang).await?)
+
+
+
+ (t(lang, Key::Status))
if may_write {
- (assignee_picker(cx, &detail.id, &unassigned, lang).await?)
+
+ } else {
+
+
+ (detail.column.name.clone())
+
}
+
+ (t(lang, Key::Deadline))
+ (deadline_control(cx, &detail, today, may_write, lang).await?)
+
+
+
(format!("{} — {}", t(lang, Key::Assignees), detail.assignees.len()))
+
+ for person in &detail.assignees {
+ (assignee_chip(cx, &detail.id, person, may_write, lang).await?)
+ }
+
+ if may_write {
+ (assignee_picker(cx, &detail.id, &unassigned, lang).await?)
+ }
+
+
-
- (t(lang, Key::Deadline))
- (deadline_control(cx, &detail, today, may_write, lang).await?)
-
-
+ (refused(cx, "move_card", lang).await?)
-
-
-
(t(lang, Key::Dependencies))
-
- if may_write {
- (link_picker(cx, &detail.id, &linkable, lang).await?)
- }
-
- if has_deps {
-
- for edge in &detail.blocked_by {
- (dep_row(cx, &detail.id, edge, Direction::BlockedBy, may_write, lang).await?)
- }
- for edge in &detail.blocks {
- (dep_row(cx, &detail.id, edge, Direction::Blocks, may_write, lang).await?)
+
+
+
(t(lang, Key::Dependencies))
+
+ if may_write {
+ (link_picker(cx, &detail.id, &linkable, lang).await?)
}
- } else {
- (t(lang, Key::NoDependencies))
- }
-
+ if has_deps {
+
+ for edge in &detail.blocked_by {
+ (dep_row(cx, &detail.id, edge, Direction::BlockedBy, may_write, lang).await?)
+ }
+ for edge in &detail.blocks {
+ (dep_row(cx, &detail.id, edge, Direction::Blocks, may_write, lang).await?)
+ }
+
+ } else {
+
(t(lang, Key::NoDependencies))
+ }
+
-
-
- (t(lang, Key::Files))
- (detail.files.len())
-
- if !detail.files.is_empty() {
-
- for file in &detail.files {
- (file_chip(cx, &detail.id, file, &me, may_write, lang).await?)
- }
+
+
+ (t(lang, Key::Files))
+ (detail.files.len())
- }
- (refused(cx, "delete_file", lang).await?)
- if may_comment {
-
- (refused(cx, "upload_file", lang).await?)
- }
-
-
-
-
- (t(lang, Key::Comments))
- (detail.comments.len())
-
-
- if may_comment {
-
- (refused(cx, "post_comment", lang).await?)
- }
-
-
-
- (t(lang, Key::Activity))
-
- for entry in &detail.activity {
-
-
(entry.moment_in(zone))
-
(entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "Izlek".to_string()))
-
(entry.sentence())
+ if !detail.files.is_empty() {
+
+ for file in &detail.files {
+ (file_chip(cx, &detail.id, file, &me, may_write, lang).await?)
+ }
}
-
-
-
- (refused(cx, "delete_task", lang).await?)
-
-
+
+
+
+
+ (t(lang, Key::Comments))
+ (detail.comments.len())
+
+
+
+
+
+ (t(lang, Key::Activity))
+
+ for entry in &detail.activity {
+
+ (entry.moment_in(zone))
+ (entry.actor.as_ref().map(|person| person.display_name.clone()).unwrap_or_else(|| "Izlek".to_string()))
+ (entry.sentence())
+
+ }
+
+
+
+ (refused(cx, "delete_task", lang).await?)
+
+
+
+
+ if may_comment {
+
+ (refused(cx, "post_comment", lang).await?)
+ }
(datepicker_script(cx, lang).await?)
diff --git a/style/_instrument.scss b/style/_instrument.scss
index 86fb39b..ef22e79 100644
--- a/style/_instrument.scss
+++ b/style/_instrument.scss
@@ -159,3 +159,77 @@
// heights, radii, shadows — already carry the rest.)
}
+
+// -- task detail: 560px side panel over the board ----------------------------
+// The board stays live underneath; the panel docks right and dims the board
+// through the scrim. The base `.modal-task` only fixes the frame — this rule
+// moves it out of the centered flow and gives it the panel geometry.
+[data-ui="instrument"] .modal-scrim:has(> .modal-task) {
+ background: color-mix(in srgb, var(--scrim) 65%, transparent);
+ justify-content: flex-end;
+ padding: 0;
+}
+
+[data-ui="instrument"] .modal-task {
+ position: fixed;
+ top: 0;
+ right: 0;
+ bottom: 0;
+ width: 560px;
+ max-width: 100%;
+ max-height: none;
+ background: var(--surface);
+ border: none;
+ border-radius: 0;
+ box-shadow: var(--shadow-3);
+}
+
+// Header: key left, Esc and the close cross right. The header's own state
+// chip is suppressed — status lives in the body's field grid.
+[data-ui="instrument"] .modal-task .detail-head {
+ align-items: center;
+ gap: 12px;
+ padding: 14px 16px;
+ border-bottom: 1px solid var(--border);
+}
+
+[data-ui="instrument"] .detail-state,
+[data-ui="instrument"] .detail-board {
+ display: none;
+}
+
+[data-ui="instrument"] .detail-body {
+ flex: 1;
+ min-height: 0;
+ overflow-y: auto;
+ padding: 20px;
+}
+
+[data-ui="instrument"] .detail-title {
+ font-size: 20px;
+}
+
+[data-ui="instrument"] .detail-fields {
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 10px;
+ padding: 0;
+ margin-top: 18px;
+}
+
+// Blocks run down the panel body below the title; only the composer pins.
+[data-ui="instrument"] .detail-block {
+ margin-top: 18px;
+}
+
+[data-ui="instrument"] .detail-foot {
+ padding: 0;
+ margin-top: 20px;
+}
+
+// Composer is the last child of `.modal-task` (outside `.detail-body`), so on
+// the flex panel it stays pinned while the body above scrolls.
+[data-ui="instrument"] .comment-composer {
+ flex: none;
+ padding: 14px 20px;
+ border-top: 1px solid var(--border);
+}
diff --git a/style/_ledger.scss b/style/_ledger.scss
index b42f5ca..615bcf0 100644
--- a/style/_ledger.scss
+++ b/style/_ledger.scss
@@ -245,3 +245,178 @@
.rule-switch-on { background: var(--ink); }
}
+
+// -- task detail: its own page ------------------------------------------------
+// No chrome, no floating card: the modal opens as an opaque paper page. The
+// scrim carries the paper ground and the invisible panning; the column is
+// static content on top of it, so nothing inside ever scrolls or shows a
+// scrollbar.
+[data-ui="ledger"] .modal-scrim:has(> .modal-task) {
+ background: var(--bg);
+ justify-content: center;
+ padding: 36px 40px;
+}
+
+[data-ui="ledger"] .modal-task {
+ position: static;
+ width: 720px;
+ max-width: 100%;
+ max-height: none;
+ overflow: visible;
+ display: block;
+ background: transparent;
+ border: none;
+ border-radius: 0;
+ box-shadow: none;
+}
+
+[data-ui="ledger"] .detail-body {
+ overflow: visible;
+}
+
+// Meta row: key + state chip left, `<- Board` right. The panel chrome — Esc
+// hint, close cross — and the body's status fieldbox (the chip already says
+// it) are suppressed.
+[data-ui="ledger"] .modal-task .detail-head {
+ align-items: center;
+ gap: 12px;
+ padding: 0;
+}
+
+[data-ui="ledger"] .modal-task .detail-esc,
+[data-ui="ledger"] .modal-task .detail-close,
+[data-ui="ledger"] .detail-body .detail-field-status {
+ display: none;
+}
+
+// Dependency rows lose the card chrome - the page reads as ruled paper.
+[data-ui="ledger"] .dep-row {
+ border: 0;
+ border-bottom: 1px solid var(--border);
+ border-radius: 0;
+ background: transparent;
+}
+
+[data-ui="ledger"] .modal-task .detail-key {
+ font-size: 10px;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--ink);
+ text-decoration: underline dotted;
+ text-underline-offset: 3px;
+}
+
+[data-ui="ledger"] .detail-state {
+ font-family: var(--font-mono);
+ font-size: 10px;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+}
+
+[data-ui="ledger"] .detail-state .field-box,
+[data-ui="ledger"] .detail-state .status-form {
+ height: auto;
+ padding: 0;
+ background: transparent;
+ border: none;
+ font: inherit;
+ color: var(--ink);
+}
+
+[data-ui="ledger"] .detail-state .status-select {
+ width: auto;
+ flex: none;
+ font: inherit;
+ text-transform: uppercase;
+}
+
+[data-ui="ledger"] .detail-state .status-dot {
+ display: none;
+}
+
+[data-ui="ledger"] .detail-board {
+ margin-left: auto;
+ font-size: 10px;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: var(--ink);
+ background: transparent;
+ border: none;
+ height: auto;
+}
+
+// Serif title over a heavy rule; the edit form gets the same rule so the
+// title area holds still while editing.
+[data-ui="ledger"] .detail-body .detail-title,
+[data-ui="ledger"] .title-form {
+ padding-bottom: 10px;
+ border-bottom: 2px solid var(--ink);
+}
+
+[data-ui="ledger"] .detail-title {
+ font-family: var(--font-serif, Georgia, serif);
+ font-size: 32px;
+ font-weight: 400;
+ line-height: 1.15;
+ letter-spacing: 0;
+}
+
+[data-ui="ledger"] .title-input {
+ height: auto;
+ padding: 0;
+ border: none;
+ background: transparent;
+ font-family: var(--font-serif, Georgia, serif);
+ font-size: 32px;
+ font-weight: 400;
+}
+
+// Hairline ruled rows instead of boxed controls.
+[data-ui="ledger"] .detail-fields {
+ display: block;
+ padding: 0;
+ margin-top: 24px;
+ border-top: 1px solid var(--border);
+}
+
+[data-ui="ledger"] .detail-field {
+ display: flex;
+ flex-direction: row;
+ align-items: baseline;
+ gap: 16px;
+ padding: 10px 0;
+ border-bottom: 1px solid var(--border);
+}
+
+[data-ui="ledger"] .detail-field > .detail-label {
+ flex: none;
+ width: 130px;
+}
+
+[data-ui="ledger"] .detail-field .field-box,
+[data-ui="ledger"] .detail-field .status-form {
+ background: transparent;
+ border: none;
+ border-radius: 0;
+ padding: 0;
+ height: auto;
+}
+
+[data-ui="ledger"] .detail-field .status-dot {
+ display: none;
+}
+
+// Long-form sections run as prose on paper.
+[data-ui="ledger"] .detail-block {
+ margin-top: 24px;
+}
+
+[data-ui="ledger"] .comment-list {
+ border-top: 1px solid var(--border);
+}
+
+// Composer sits in the flow at the end of the page — the body above is
+// static, so it simply follows the sections.
+[data-ui="ledger"] .comment-composer {
+ padding: 20px 0 0;
+}
diff --git a/style/main.scss b/style/main.scss
index 0343d3c..9694fba 100644
--- a/style/main.scss
+++ b/style/main.scss
@@ -985,6 +985,12 @@ a {
justify-content: center;
padding: 48px 24px;
overflow-y: auto;
+ // The scrim is the silent pan surface for tall page-style modals: it may
+ // scroll, but it never shows a scrollbar.
+ scrollbar-width: none;
+
+ &::-webkit-scrollbar { display: none; }
+
z-index: 20;
}
@@ -1012,20 +1018,25 @@ a {
.modal-new-task { width: 480px; }
-// The task-detail modal is a right side panel: fixed to the viewport's right
-// edge at full height. Its markup shares `.modal` with the new-task modal and
-// the viewer, which stay centered, so the panel is `.modal` minus those two.
-.modal:not(.modal-new-task):not(.viewer) {
- position: fixed;
- inset: 0 0 0 auto;
- width: 560px;
- max-width: 100vw;
+// The task-detail modal shares `.modal` with the new-task modal and the
+// viewer, which stay centered. The base only fixes the frame — a header on
+// top, one body that pans invisibly between header and composer — because
+// the skins reshape it: instrument docks it as a 560px side panel, ledger
+// lays it out as its own opaque page.
+.modal-task {
+ display: flex;
+ flex-direction: column;
max-height: none;
- border: none;
- border-left: 1px solid var(--border);
- border-radius: 0;
+ overflow: visible;
+}
- @media (max-width: 640px) { width: 100vw; }
+.detail-body {
+ flex: 1;
+ min-height: 0;
+ overflow-y: auto;
+ scrollbar-width: none;
+
+ &::-webkit-scrollbar { display: none; }
}
// The in-app file viewer: same scrim/panel chrome as the task modal, rendered
@@ -1325,7 +1336,6 @@ a {
.detail-key {
display: block;
- margin-bottom: 6px;
font-family: var(--font-mono);
font-size: 11px;
color: var(--muted-soft);
@@ -1385,6 +1395,16 @@ a {
&:hover { background: var(--row-hover); }
}
+.detail-state {
+ display: inline-flex;
+ align-items: center;
+}
+
+.detail-board {
+ align-self: center;
+ white-space: nowrap;
+}
+
// -- the field row ----------------------------------------------------------
.detail-fields {