@@ -1790,6 +1790,17 @@ export default function ThreadTerminalDrawer({
17901790 } ;
17911791 } , [ isPanel , visible ] ) ;
17921792
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+
17931804 if ( normalizedTerminalIds . length === 0 ) {
17941805 return (
17951806 < aside
@@ -1803,16 +1814,7 @@ export default function ThreadTerminalDrawer({
18031814 ) }
18041815 style = { isPanel ? undefined : { height : `var(${ DRAG_HEIGHT_PROPERTY } , ${ drawerHeight } px)` } }
18051816 >
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 }
18161818 < 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" >
18171819 < p > No terminal sessions for this thread yet.</ p >
18181820 < Button
@@ -1840,16 +1842,7 @@ export default function ThreadTerminalDrawer({
18401842 ) }
18411843 style = { isPanel ? undefined : { height : `var(${ DRAG_HEIGHT_PROPERTY } , ${ drawerHeight } px)` } }
18421844 >
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 }
18531846
18541847 { ! hasTerminalSidebar && (
18551848 < div className = "pointer-events-none absolute right-2 top-2 z-20" >
@@ -1929,7 +1922,8 @@ export default function ThreadTerminalDrawer({
19291922 { hasTerminalSidebar && (
19301923 < aside className = "flex w-36 min-w-36 flex-col border border-border/70 bg-muted/10" >
19311924 < 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" >
19331927 < TerminalActionButton
19341928 disabled = { ! canOperateTerminal }
19351929 className = { `inline-flex h-full items-center px-1 text-foreground/90 transition-colors ${
0 commit comments