Skip to content

fix(annotations): empty dock overlay clipped thread panel content#8

Merged
ijbo merged 1 commit into
mainfrom
fix/annotation-panel-empty-overlay
Jun 23, 2026
Merged

fix(annotations): empty dock overlay clipped thread panel content#8
ijbo merged 1 commit into
mainfrom
fix/annotation-panel-empty-overlay

Conversation

@ijbo

@ijbo ijbo commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

The bug

The annotation Q&A panel opened with content squeezed into a narrow left strip and a large empty white box covering the right — reported with a screenshot.

Root cause

The right-side Threads dock was created and left visible (320px wide) even when no thread was docked, painting an invisible overlay over every floating panel. Dock visibility was managed via inconsistent inline display styles.

Fix

  • Dock is display:none by default in CSS, shown only via body.ai-tag-dock-open — added exclusively when a panel is actually docked, removed when empty.
  • Messages area sizes to content (flex:0 1 auto) instead of growing to fill an oversized panel (no empty void).
  • Floating-panel positioning hard-clamps to the viewport on all four edges (no off-screen clipping).
  • Removed backdrop-filter: blur() (compositing artifacts on a fixed/draggable element) for a solid background.
  • Mobile panel height floored (min-height, max-height:70vh) instead of a collapsing 60vh.

Verified

At 1280×800 via Playwright (the live preview iframe is 1px tall and can't validate layout): panel renders full-width; the previously-empty region now hit-tests to a message element, not the dock; docking still reflows the document (1280 → 960) and the dock shows only when used. Smoke 22/22.

🤖 Generated with Claude Code

The right-side Threads dock was created and left visible (320px) even when no
thread was docked, painting an invisible overlay over every floating panel and
squeezing its content into a left strip.

- dock is display:none by default; shown only via body.ai-tag-dock-open (added
  only when a panel is actually docked)
- messages area sizes to content (flex:0 1 auto), no empty void
- floating-panel positioning clamps to the viewport on all edges
- removed backdrop-filter blur (fixed/draggable compositing artifact)
- mobile panel height floored instead of collapsing 60vh

Verified at 1280x800 via Playwright; smoke 22/22.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ijbo ijbo merged commit 86782bd into main Jun 23, 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.

1 participant