Skip to content

Reduce floating panel margins for layout consistency - #328963

Merged
Lee Murray (mrleemurray) merged 2 commits into
mainfrom
mrleemurray/late-coral-swift
Aug 4, 2026
Merged

Lee Murray (mrleemurray) merged 2 commits into
mainfrom
mrleemurray/late-coral-swift

Conversation

@mrleemurray

@mrleemurray Lee Murray (mrleemurray) commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

This pull request updates the floating panel layout to use a 4px inter-card gap by setting the inner (trailing) margin between floating cards to 0px instead of 2px. The changes ensure consistency between the CSS and TypeScript constants, update documentation, and add a test to verify the new spacing.

Floating panel spacing update:

  • Changed the trailing card margin (FLOATING_PANEL_INNER_MARGIN) from 2px to 0px in layoutService.ts, making the inter-card gap 4px instead of 6px. Updated the documentation to reference --vscode-spacing-sizeNone (0px) instead of --vscode-spacing-size20 (2px).
  • Updated all relevant CSS in floatingPanels.css to use var(--vscode-spacing-sizeNone) for trailing margins and gaps, replacing previous uses of var(--vscode-spacing-size20). This affects margins for panels, sidebars, editors, and sash sizing/positioning. [1] [2] [3] [4] [5] [6] [7]

Documentation and comments:

  • Updated comments in floatingPanels.css and layoutService.ts to reflect the new 4px gap and 0px trailing margin, ensuring documentation matches implementation. [1] [2] [3] [4]

Testing:

  • Added a test in layoutService.test.ts to assert that the leading margin is 4px, trailing margin is 0px, and the total inter-card gap is 4px.

These changes keep the floating panel UI consistent and ensure that both code and documentation reflect the intended design.

…onsistency

Co-authored-by: Copilot <copilot@github.com>
Copilot AI balanced review requested due to automatic review settings August 4, 2026 13:30
@mrleemurray
Lee Murray (mrleemurray) enabled auto-merge (squash) August 4, 2026 13:30
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Christopher Simmonds (@benibenj)

Matched files:

  • src/vs/workbench/services/layout/browser/layoutService.ts
  • src/vs/workbench/services/layout/test/browser/layoutService.test.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces floating-panel spacing to a consistent 4px inter-card gap.

Changes:

  • Removes trailing panel margins.
  • Realigns resize sashes with the new gap.
  • Adds a spacing regression test.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
floatingPanels.css Updates margins and sash geometry.
layoutService.ts Sets the trailing margin to zero.
layoutService.test.ts Verifies the 4px spacing contract.

Comment thread src/vs/workbench/browser/media/floatingPanels.css Outdated
Comment thread src/vs/workbench/browser/media/floatingPanels.css Outdated
…ion consistency

Co-authored-by: Copilot <copilot@github.com>
@mrleemurray
Lee Murray (mrleemurray) merged commit 7bbbeaa into main Aug 4, 2026
29 checks passed
@mrleemurray
Lee Murray (mrleemurray) deleted the mrleemurray/late-coral-swift branch August 4, 2026 14:29
@vs-code-engineering vs-code-engineering Bot added this to the 1.133.0 milestone Aug 4, 2026
Don Jayamanne (DonJayamanne) added a commit that referenced this pull request Aug 4, 2026
* origin/main: (31 commits)
  Improve workspace picker preselection (#328995)
  agentHost: support Codex custom agents and runtime enablement (#328956)
  Finalizes customEditorPriority proposal. Closes #292379 (#329002)
  Add Agents window startup A/A experiment trigger (#328454)
  sessions: show created session pill in response summary (#328984)
  Fix onboarding microphone picker visibility (#329011)
  Explains how to develop the markdown editor (#329009)
  Conditional agent-window auth for signed-out users (#328990)
  Fix BYOK enterprise policy handling in agent host
  Agent Host changes for fix/agent-host-byok-enterprise-policy
  agentHost: drive tool execution from the session input queue (#328989)
  Make Integrated Browser smoke tests deterministic across build qualities (#328983)
  Accept box sizing screenshot changes
  Avoid large Component Fixtures step outputs
  Remove component fixture box sizing reset
  fix: guard stale line numbers in test decorations (fixes #328988)
  sessions: fix maximized side pane toggle (#328974)
  Add component fixture rendering controls
  Reduce floating panel margins for layout consistency (#328963)
  agentHost: support file completions across workspace roots (#328944)
  ...

# Conflicts:
#	src/vs/sessions/SESSIONS.md
#	src/vs/sessions/contrib/providers/agentHost/browser/baseAgentHostSessionsProvider.ts
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Sep 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants