fix(kb): read-mode button (derive + minimize icon) and density paragraph spacing #75

Merged
vas2000-work merged 3 commits from fix/kb-readmode-button into main 2026-06-06 00:49:11 +02:00
Owner

Two KB reading-view tweaks plus a lockfile fix.

Read-mode button

  • Its active state is now DERIVED from "both rails collapsed" rather than a separate read_mode flag, so manually collapsing both chevrons flips it to the active state automatically.
  • Icon swaps between outward arrows (expand) and inward arrows (minimize) via inline SVG. Click collapses both rails when either is open, expands both when both are collapsed. Drops the unused read_mode/prior signals and kb_read_mode pref.

Density paragraph spacing

  • The compact/comfortable density toggle now drives BOTH line spacing (leading-relaxed vs leading-snug) AND the gap between paragraphs ([&_p]:my-5 vs [&_p]:my-2), so compact reads denser and comfortable airier.

Cargo.lock

  • The KB overhaul added ammonia to Cargo.toml but the lock update was never committed (authored without a local toolchain), leaving main out of sync. Sync the lockfile so cargo build --locked resolves.

Needs a gate run.

Two KB reading-view tweaks plus a lockfile fix. ## Read-mode button - Its active state is now DERIVED from "both rails collapsed" rather than a separate read_mode flag, so manually collapsing both chevrons flips it to the active state automatically. - Icon swaps between outward arrows (expand) and inward arrows (minimize) via inline SVG. Click collapses both rails when either is open, expands both when both are collapsed. Drops the unused read_mode/prior signals and kb_read_mode pref. ## Density paragraph spacing - The compact/comfortable density toggle now drives BOTH line spacing (leading-relaxed vs leading-snug) AND the gap between paragraphs ([&_p]:my-5 vs [&_p]:my-2), so compact reads denser and comfortable airier. ## Cargo.lock - The KB overhaul added ammonia to Cargo.toml but the lock update was never committed (authored without a local toolchain), leaving main out of sync. Sync the lockfile so cargo build --locked resolves. Needs a gate run.
The read-mode button now reflects whether both side rails are collapsed rather than tracking a separate read_mode flag, so collapsing both chevrons manually flips it to the active (minimize) state automatically. The icon swaps between outward arrows (expand) and inward arrows (minimize). Clicking collapses both rails when either is open, or expands both when both are collapsed. Drops the now-unused read_mode/prior signals and kb_read_mode pref.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The compact/comfortable reader density now drives both the within-paragraph line spacing (leading-relaxed vs leading-snug) and the gap between paragraphs (an arbitrary [&_p]:my-5 vs [&_p]:my-2 variant overriding the prose plugin default), so compact reads noticeably denser and comfortable reads airier.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
chore: sync Cargo.lock with the ammonia dependency
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 52s
Create release / Create release from merged PR (pull_request) Has been skipped
bbea6017f5
The KB overhaul added ammonia to Cargo.toml but the lockfile update was not committed (the change was authored without a local toolchain), leaving Cargo.lock out of sync with Cargo.toml on main. Commit the regenerated lock entries so `cargo build --locked` resolves.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
vas2000-work deleted branch fix/kb-readmode-button 2026-06-06 00:49:11 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!75
No description provided.