fix(web): align titlebar clusters to one shared pixel inset
The right controls carry mr-px (main's border compensation for anchoring inside the panel frame), which left the sidebar trigger one pixel closer to its edge and the sheet-mode tab bar one pixel tighter than the closed state. Mirror the pixel on the trigger and the sheet layout-controls slot so all three read the same inset. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
a29fd51629
commit
f6601420ad
1 file changed
+5
-1
@@ -6805,7 +6805,11 @@ function ChatViewContent(props: ChatViewProps) {
|
||||
<RightPanelTabs
|
||||
mode="sheet"
|
||||
inlineSize={previewPanelInlineSize}
|
||||
layoutControls={panelToggleControls}
|
||||
// Same effective inset as the closed-state titlebar controls
|
||||
// (pr-3 in the tab bar plus this pixel equals the absolute
|
||||
// right inset plus mr-px), so the cluster does not creep when
|
||||
// the sheet opens.
|
||||
layoutControls={<div className="mr-px flex items-center">{panelToggleControls}</div>}
|
||||
surfaces={rightPanelState.surfaces}
|
||||
activeSurfaceId={activeRightPanelSurface?.id ?? null}
|
||||
pendingSurfaceIds={pendingFileSurfaceIds}
|
||||
|
||||
Reference in new issue
Block a user