Skip to content

Commit d8966b6

Browse files
committed
refactor(sidebar): drop orphaned sidebar-collapse-btn class
Its CSS rule was removed with the data-sidebar-collapsed mask; the button's collapse behavior is fully driven by the React isCollapsed ternary, leaving the class name pointing at nothing.
1 parent 443b8e4 commit d8966b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/components/sidebar

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ export const Sidebar = memo(function Sidebar({ initialCollapsed = false }: Sideb
12971297
type='button'
12981298
onClick={toggleCollapsed}
12991299
className={cn(
1300-
'sidebar-collapse-btn ml-2 flex h-[30px] items-center justify-center overflow-hidden rounded-lg transition-all duration-200 hover-hover:bg-[var(--surface-active)]',
1300+
'ml-2 flex h-[30px] items-center justify-center overflow-hidden rounded-lg transition-all duration-200 hover-hover:bg-[var(--surface-active)]',
13011301
isCollapsed ? 'w-0 opacity-0' : 'w-[30px] opacity-100'
13021302
)}
13031303
aria-label='Collapse sidebar'

0 commit comments

Comments
 (0)