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): align close button padding with header inset (#7954)

Jacob Beckerman895f7de9b9fc
diff --git a/apps/web/src/components/app/split-layout/components/SplitHeader.tsx b/apps/web/src/components/app/split-layout/components/SplitHeader.tsx
index 266c68a329..ba46c99b45 100644
--- a/apps/web/src/components/app/split-layout/components/SplitHeader.tsx
+++ b/apps/web/src/components/app/split-layout/components/SplitHeader.tsx
@@ -437,8 +437,10 @@ export function SplitHeader(props: {
</Portal>
)}
</Show>
+ {/* pl-1 + the close wrapper's pl-2 insets the 24px close button 12px
+ from the left, matching its inset from the top of the 48px header. */}
<div
- class="absolute inset-0 flex justify-start items-center not-touch:pl-[5px] touch:px-(--mobile-chrome-gutter) touch:gap-2"
+ class="absolute inset-0 flex justify-start items-center not-touch:pl-1 touch:px-(--mobile-chrome-gutter) touch:gap-2"
ref={props.collapseController.setRow}
>
<Show
diff --git a/apps/web/src/components/view-shell/ViewShell.tsx b/apps/web/src/components/view-shell/ViewShell.tsx
index 232d1130b2..05529c47e8 100644
--- a/apps/web/src/components/view-shell/ViewShell.tsx
+++ b/apps/web/src/components/view-shell/ViewShell.tsx
@@ -679,7 +679,7 @@ function TopBar(props: JSX.HTMLAttributes<HTMLDivElement>) {
{...rest}
ref={mergeRefs(local.ref, tourTarget(VIEW_SHELL_TOUR.topBar))}
class={cn(
- '@container/split-header flex h-12 min-w-0 shrink-0 items-center gap-1 px-2 py-3 not-touch:pl-[13px] touch:hidden',
+ '@container/split-header flex h-12 min-w-0 shrink-0 items-center gap-1 px-2 py-3 not-touch:pl-3 touch:hidden',
local.class
)}
data-view-shell-top-bar=""