Skip to content

Commit ae0464c

Browse files
andresdjassoclaude
andcommitted
fix(resource-header): lift chrome controls out of the clipping breadcrumb group
The sidebar toggle's 9px pull-out was clipped by the breadcrumb container's overflow-hidden; the toggle and chat switcher now sit beside it instead. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6d848b7 commit ae0464c

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-header

apps/sim/app/workspace/[workspaceId]/components/resource/components/resource-header/resource-header.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,15 @@ export const ResourceHeader = memo(function ResourceHeader({
112112
return (
113113
<div
114114
ref={headerRef}
115-
className='flex h-[44px] items-center border-[var(--border)] border-b px-4'
115+
className='flex h-[44px] items-center gap-2 border-[var(--border)] border-b px-4'
116116
>
117+
{/* Chrome controls live outside the overflow-hidden breadcrumb group so
118+
the toggle's 9px pull-out (7px edge inset, matching the chat title
119+
bar) isn't clipped. */}
120+
<SidebarToggle className='-ml-[9px]' />
121+
<ChatSwitcher />
117122
<div className='flex min-w-0 flex-1 items-center justify-between gap-3'>
118123
<div className='flex min-w-0 flex-1 items-center gap-2 overflow-hidden'>
119-
{/* Edge controls pull out by 9px so their 30px hover pills sit 7px
120-
from the panel edge — same rhythm as the chat title bar. */}
121-
<SidebarToggle className='-ml-[9px]' />
122-
<ChatSwitcher />
123124
{hasBreadcrumbs ? (
124125
breadcrumbs.map((crumb, i) => {
125126
const segmentClassName = getBreadcrumbSegmentClassName(

0 commit comments

Comments
 (0)