Skip to content

fix(app): tighten side-panel right-edge gap - #309

Merged
jeonghun-jj-lee merged 1 commit into
local/amicodefrom
fix/side-panel-right-edge-gap
Sep 7, 2026
Merged

fix(app): tighten side-panel right-edge gap#309
jeonghun-jj-lee merged 1 commit into
local/amicodefrom
fix/side-panel-right-edge-gap

Conversation

@jeonghun-jj-lee

Copy link
Copy Markdown
Contributor

What

Tightens the right-side gap between the side panel and the window edge. Three changes:

  1. panelRow padding p-2px-1.5 py-2, gap gap-2gap-1.5 — reduces the horizontal inset from 8px to 6px on both sides, gap between panels tightened to match.

  2. DEFAULT_PANEL_COLUMN_WIDTH 320 → 330 — the default was below WORK_COLUMN_WIDTH_MIN (330), so the work column container (which floors at 330) was wider than the side panel <aside> (which used the raw 320), leaving a 10px transparent gap inside the container.

  3. floorPanelColumnWidth helper — the side panel's panelWidth() memo now floors at WORK_COLUMN_WIDTH_MIN so existing stored widths below 330 can't reintroduce the mismatch.

sessionPanelAvailable gap subtraction updated 8 → 6 to match the new gap-1.5.

Tests

  • 2 new tests for floorPanelColumnWidth (lifts sub-minimum widths, passes through valid ones)
  • All existing tests pass

Companion PR: harmoniqs/amicode#875

Three changes that together reduce the visible right-side gap:

1. panelRow padding: p-2 (8px all sides) → px-1.5 py-2 (6px horizontal,
   8px vertical) + gap-2 → gap-1.5. The 8px inset was visually amplified
   on the right because macOS traffic lights fill the left edge above the
   content, while nothing fills the right. Tightening the horizontal inset
   brings the panels closer to the window edges on both sides.

2. DEFAULT_PANEL_COLUMN_WIDTH: 320 → 330 to match WORK_COLUMN_WIDTH_MIN.
   The work column container used clampWorkColumnWidth (floor 330) but the
   side panel aside used the raw stored width (320), leaving a 10px
   transparent gap inside the container.

3. floorPanelColumnWidth helper: the side panel's panelWidth() memo now
   floors at WORK_COLUMN_WIDTH_MIN so existing stored widths below 330
   can't reintroduce the mismatch.

sessionPanelAvailable gap subtraction updated 8 → 6 to match the new
gap-1.5.
@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 4cd967c8-f04e-4413-ae87-3cd9a121f7e3


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jeonghun-jj-lee
jeonghun-jj-lee merged commit 4ec9380 into local/amicode Sep 7, 2026
3 checks passed
@jeonghun-jj-lee
jeonghun-jj-lee deleted the fix/side-panel-right-edge-gap branch September 7, 2026 05:38
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