fix(issue-1630): align TaskNote widget with readable line width

This commit is contained in:
callumalpass 2026-02-21 08:46:42 +11:00
parent 791119c36c
commit 5d5abc2d88
2 changed files with 13 additions and 2 deletions

View file

@ -29,3 +29,5 @@ Example:
- Reduced long-running performance risk from calendar sync token persistence by avoiding full runtime settings side-effects during background sync writes
- Prevented duplicate auto-stop time tracking listeners from accumulating when settings are reloaded or changed
- Fixed a settings Integrations listener lifecycle issue that could accumulate calendar update callbacks while the settings UI is repeatedly opened/re-rendered
- (#1630) Fixed TaskNote inline task cards ignoring centered "Readable line length" layout in Minimal theme by constraining and centering the widget in readable mode
- Thanks to @martin-forge for reporting

View file

@ -2,13 +2,22 @@
.task-card-note-widget {
display: block;
box-sizing: border-box;
border-radius: var(--radius-s);
border: 1px solid var(--background-modifier-border);
margin: var(--cs-spacing-md) 0;
margin-block: var(--cs-spacing-md);
margin-inline: 0;
padding: var(--cs-spacing-sm);
}
/* Keep widget aligned with the centered readable column when enabled */
.is-readable-line-width .task-card-note-widget {
width: min(100%, var(--file-line-width, 100%));
max-width: var(--file-line-width, 100%);
margin-inline: auto;
}
.task-card-note-widget__card {
/* Reset margins for the inner task card */
margin: 0 !important;
}
}