Skip to content

Grow/shrink dashboard columns by dragging, no reset (v1.3.3)#82

Merged
Krippler merged 1 commit into
mainfrom
claude/dashboard-dynamic-columns
Jul 17, 2026
Merged

Grow/shrink dashboard columns by dragging, no reset (v1.3.3)#82
Krippler merged 1 commit into
mainfrom
claude/dashboard-dynamic-columns

Conversation

@Krippler

Copy link
Copy Markdown
Owner

Request

After 1.3.2 collapsed empty columns to fill the width, the only way back to more columns was Reset layout. You wanted to grow/shrink columns (1↔3, capped by width) just by dragging.

Fix

While a drag is in progress (.dashboard.dnd-active), empty columns now render as a dashed + drop-rail (48px wide, full height, hoverable) instead of collapsing. Pull a card into a rail and — because the column is no longer empty — it expands into a full flex column; empty it again and it collapses back. The columns already exist in the DOM and are drag-wired, so this is a CSS-only change; no JS.

Result: columns grow 1 → 2 → 3 (and shrink) purely by dragging, capped by the screen width, with no Reset. At rest, empty columns still collapse so populated ones fill the page (1.3.2 behavior).

Verification

Headless browser at 1940px:

  • ✅ At rest: empty col display:none, 2 columns fill width (905px each)
  • ✅ While dragging: empty col → 48px full-height (566px) rail
  • ✅ On drop into rail: expands to a full column (3× 599px)
  • ✅ On dragend: 3 columns fill the width
  • ✅ Screenshot confirms the dashed + rail renders cleanly
  • ✅ 122 tests green

Ships as 1.3.3. On merge the auto-release publishes 1.3.3 / 1.3 / 1 / latest.

🤖 Generated with Claude Code


Generated by Claude Code

After 1.3.2 collapsed empty columns, the only way back to more columns
was Reset layout. Now, while dragging, empty columns render as dashed "+"
drop-rails (full height, hoverable) so you can pull a card into empty
space to spin a column back up — growing 1->N up to the width's max.
Dropping into a rail makes the column non-empty so it expands to a full
flex column; emptying it collapses it again. CSS-only (the columns
already exist in the DOM and are drag-wired).

Verified in a headless browser at 1940px: empty col collapsed at rest,
becomes a 48px full-height rail while dragging, expands to a full 599px
column on drop, three columns fill the width on dragend.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013ffp2b19PUmzEU1fxpnURA
@Krippler
Krippler merged commit e9f87f9 into main Jul 17, 2026
2 checks passed
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.

2 participants