fix(kanban): vertically center column color indicator against title text #61

Merged
AhmedHanafy725 merged 1 commit from development_kanban_color_indicator_align into development 2026-04-22 13:28:11 +00:00
Member

Summary

The small colored bar beside each column title now sits on the same visual midline as the title text, regardless of font size.

Closes #53

Changes

  • crates/hero_whiteboard_ui/static/web/js/whiteboard/kanban.js — in renderColumn, create the title Konva.Text first, read its client rect relative to the group, then place the color indicator rect with y = titleBox.y + (titleBox.height - indicatorH) / 2. Robust to future font-size changes (e.g. when font scales with column width).

Test Results

  • cargo check --workspace: PASS
  • cargo clippy --workspace -- -D warnings: PASS
## Summary The small colored bar beside each column title now sits on the same visual midline as the title text, regardless of font size. ## Related Issue Closes https://forge.ourworld.tf/lhumina_code/hero_whiteboard/issues/53 ## Changes - `crates/hero_whiteboard_ui/static/web/js/whiteboard/kanban.js` — in `renderColumn`, create the title Konva.Text first, read its client rect relative to the group, then place the color indicator rect with `y = titleBox.y + (titleBox.height - indicatorH) / 2`. Robust to future font-size changes (e.g. when font scales with column width). ## Test Results - `cargo check --workspace`: PASS - `cargo clippy --workspace -- -D warnings`: PASS
fix(kanban): vertically center column color indicator against title text
All checks were successful
CI / build (pull_request) Successful in 2m9s
4e78ad3e03
#53
AhmedHanafy725 merged commit 5ee10a426f into development 2026-04-22 13:28:11 +00:00
AhmedHanafy725 deleted branch development_kanban_color_indicator_align 2026-04-22 13:28:14 +00:00
Sign in to join this conversation.
No reviewers
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
lhumina_code/hero_whiteboard!61
No description provided.