Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(ui): correct sidebar collapse animation on mobile

Steven Enamakeld8168f47f958
diff --git a/app/src/components/ui/Sidebar.tsx b/app/src/components/ui/Sidebar.tsx
index f0037a7134..5ea3b70140 100644
--- a/app/src/components/ui/Sidebar.tsx
+++ b/app/src/components/ui/Sidebar.tsx
@@ -240,15 +240,25 @@ Sidebar.displayName = 'Sidebar';
export interface SidebarRailProps extends HTMLAttributes<HTMLDivElement> {
/** Required for a11y — the primitive ships no strings of its own. */
'aria-label'?: string;
+ /**
+ * Classes for the hover/focus seam indicator (the inner `<span>`), separate
+ * from `className` (the outer `role="separator"` hit-target). Defaults to
+ * `line-chrome` — every current caller paints this rail directly on the
+ * chrome background, where the plain `line` token reads too faint. Override
+ * this, not `className`, if a future caller sits on a regular surface.
+ */
+ indicatorClassName?: string;
}
+const DEFAULT_RAIL_INDICATOR = 'group-hover:bg-line-chrome group-focus:bg-line-chrome';
+
/**
* Draggable seam between the column and the content. Transparent at rest so it
* does not draw a line across the chrome; it lights up on hover/focus to
* advertise the affordance. Arrow keys resize by {@link SIDEBAR_KEYBOARD_STEP}.
*/
export const SidebarRail = forwardRef<HTMLDivElement, SidebarRailProps>(
- ({ className, onPointerDown, onKeyDown, ...rest }, ref) => {
+ ({ className, indicatorClassName, onPointerDown, onKeyDown, ...rest }, ref) => {
const { width, setWidth, minWidth, maxWidth, open } = useSidebar();
const detachRef = useRef<(() => void) | null>(null);