Skip to content

Fix kanban columns to display more tasks (v2)#88

Merged
bborn merged 1 commit intomainfrom
task/167-kanban-full-height-v2
Jan 10, 2026
Merged

Fix kanban columns to display more tasks (v2)#88
bborn merged 1 commit intomainfrom
task/167-kanban-full-height-v2

Conversation

@bborn
Copy link
Copy Markdown
Owner

@bborn bborn commented Jan 10, 2026

Summary

  • Changed cardHeight from 4 to 3 in View() and ensureSelectedVisible()
  • Non-selected task cards are 3 lines (2 content + 1 border), not 4
  • This matches the existing HandleClick() code which already used taskCardHeight := 3

What's different from the reverted PR

This is a minimal fix that only changes the cardHeight constant. The previous PR modified colHeight which affected the column box dimensions and broke the headers. This PR does not touch colHeight at all.

Expected result

~33% more tasks displayed per column without affecting the column header layout.

Test plan

  • Run go test ./internal/ui/... - all tests pass
  • Run go build ./... - builds successfully
  • Manual testing: verify columns display more tasks and headers are not affected

🤖 Generated with Claude Code

The cardHeight was set to 4 in View() and ensureSelectedVisible(),
but task cards are actually 3 lines (2 content + 1 border) for
non-selected cards. This caused ~25% fewer tasks to be displayed
than could fit.

Changed cardHeight from 4 to 3 to match the actual card rendering
and the existing HandleClick() code which already used 3.

This is a minimal fix that only changes the maxTasks calculation
without modifying colHeight or other layout properties.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bborn bborn merged commit 08c8ed8 into main Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant