Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(split-layout): add border to right of Preview Controller (#5148)

Peter Chinman0c209f55d2fd
diff --git a/apps/web/src/components/app/split-layout/components/SplitPanel.tsx b/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
index c707bfe3d8..bbb66f191f 100644
--- a/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
+++ b/apps/web/src/components/app/split-layout/components/SplitPanel.tsx
@@ -305,13 +305,14 @@ export function SplitPanel(props: SplitPanelProps) {
'shadow-2xl shadow-drop-shadow': splitFocusStyling(),
'border-solid!': previewPairFocusStyling() && props.active,
'border-dashed!': previewPairFocusStyling() && !props.active,
- // Drawer look: the Viewer meets its Controller with
- // a square, borderless left edge (the ! beats Surface's
- // inline border shorthand)...
- 'rounded-l-none border-l-0!': tuckedBehindController(),
- // ...and the controller squares and removes its right edge,
- // leaving no border between the Preview Pair's panels.
- 'rounded-r-none border-r-0!': hasTuckedViewer(),
+ // Drawer look: both members square their seam corners, and
+ // the seam border belongs to the pair's active member — its
+ // partner's seam edge goes borderless so the line never
+ // doubles (the ! beats Surface's inline border shorthand).
+ 'rounded-l-none': tuckedBehindController(),
+ 'border-l-0!': tuckedBehindController() && !props.active,
+ 'rounded-r-none': hasTuckedViewer(),
+ 'border-r-0!': hasTuckedViewer() && !props.active,
}
)}
depth={isMobile() ? 0 : 1}