@devries-cameron20 / t3code-1 / commits / fa2f4ff2a2
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): panel resize handles follow touch drags (#33066)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Nov 10, 2026 at 02:36 UTC fa2f4ff2a2bac5ac92e07749f6b83b0003d642a0
3 files changed +17 -23
apps/web/src/components/ThreadTerminalDrawer.tsx
+15 -21
@@ -1790,6 +1790,17 @@ export default function ThreadTerminalDrawer({
1790 };
1791 }, [isPanel, visible]);
1792
1793 + const resizeHandle = isPanel ? null : (
1794 + <div
1795 + className="absolute inset-x-0 top-0 z-20 h-1.5 cursor-row-resize touch-none any-pointer-coarse:h-4"
1796 + onPointerDown={handleResizePointerDown}
1797 + onPointerMove={handleResizePointerMove}
1798 + onPointerUp={handleResizePointerEnd}
1799 + onPointerCancel={handleResizePointerEnd}
1800 + onLostPointerCapture={handleResizePointerEnd}
1801 + />
1802 + );
1803 +
1804 if (normalizedTerminalIds.length === 0) {
1805 return (
1806 <aside
@@ -1803,16 +1814,7 @@ export default function ThreadTerminalDrawer({
1814 )}
1815 style={isPanel ? undefined : { height: `var(${DRAG_HEIGHT_PROPERTY}, ${drawerHeight}px)` }}
1816 >
1806 - {!isPanel ? (
1807 - <div
1808 - className="absolute inset-x-0 top-0 z-20 h-1.5 cursor-row-resize"
1809 - onPointerDown={handleResizePointerDown}
1810 - onPointerMove={handleResizePointerMove}
1811 - onPointerUp={handleResizePointerEnd}
1812 - onPointerCancel={handleResizePointerEnd}
1813 - onLostPointerCapture={handleResizePointerEnd}
1814 - />
1815 - ) : null}
1817 + {resizeHandle}
1818 <div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-3 px-4 py-6 text-center text-sm text-muted-foreground">
1819 <p>No terminal sessions for this thread yet.</p>
1820 <Button
@@ -1840,16 +1842,7 @@ export default function ThreadTerminalDrawer({
1842 )}
1843 style={isPanel ? undefined : { height: `var(${DRAG_HEIGHT_PROPERTY}, ${drawerHeight}px)` }}
1844 >
1843 - {!isPanel ? (
1844 - <div
1845 - className="absolute inset-x-0 top-0 z-20 h-1.5 cursor-row-resize"
1846 - onPointerDown={handleResizePointerDown}
1847 - onPointerMove={handleResizePointerMove}
1848 - onPointerUp={handleResizePointerEnd}
1849 - onPointerCancel={handleResizePointerEnd}
1850 - onLostPointerCapture={handleResizePointerEnd}
1851 - />
1852 - ) : null}
1845 + {resizeHandle}
1846
1847 {!hasTerminalSidebar && (
1848 <div className="pointer-events-none absolute right-2 top-2 z-20">
@@ -1929,7 +1922,8 @@ export default function ThreadTerminalDrawer({
1922 {hasTerminalSidebar && (
1923 <aside className="flex w-36 min-w-36 flex-col border border-border/70 bg-muted/10">
1924 <div className="flex h-[22px] items-stretch justify-end border-b border-border/70">
1932 - <div className="inline-flex h-full items-stretch">
1925 + {/* Sits above the taller touch resize handle so its buttons keep their taps. */}
1926 + <div className="inline-flex h-full items-stretch any-pointer-coarse:relative any-pointer-coarse:z-30">
1927 <TerminalActionButton
1928 disabled={!canOperateTerminal}
1929 className={`inline-flex h-full items-center px-1 text-foreground/90 transition-colors ${
apps/web/src/components/preview/RightPanelResizeHandle.tsx
+1 -1
@@ -19,7 +19,7 @@ export function RightPanelResizeHandle({ handlers, className, label, ...separato
19 aria-orientation="vertical"
20 {...separatorProps}
21 className={cn(
22 - "group absolute inset-y-0 -left-1 z-20 w-2 cursor-col-resize select-none",
22 + "group absolute inset-y-0 -left-1 z-20 w-2 cursor-col-resize touch-none select-none any-pointer-coarse:-left-2 any-pointer-coarse:w-4",
23 className,
24 )}
25 {...handlers}
apps/web/src/components/ui/sidebar.tsx
+1 -1
@@ -555,7 +555,7 @@ function SidebarRail({
555 /* A collapsed offcanvas rail overlaps the native scrollbar on Windows and Linux. */
556 "-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex [[data-collapsible=offcanvas][data-state=collapsed]_&]:pointer-events-none",
557 "[[data-panel-animations=true]_&]:transition-all [[data-panel-animations=true]_&]:[transition-duration:var(--panel-animation-duration)] [[data-panel-animations=true]_&]:ease-out",
558 - "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
558 + "touch-none in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
559 "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
560 "group-data-[collapsible=offcanvas]:translate-x-0 hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full",
561 "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",