Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): terminal controls no longer cover the first line #23373

Mergedjuliusmarmingemerged 10 commits intomain fromrefs/pull/23373/headmerged by juliusmarminge View on GitHub

Showing 8 changed files with 108 additions and 88 deletions (loading 6).

x
0 of 8 viewed, 8 left
56 additions and 88 deletionsapps/web/src/components/ThreadTerminalDrawer.tsxModified
View file
@@ -1777,6 +1777,53 @@
+ // The single-terminal row and the split sidebar header share these controls,
+ // so neither layout floats them over terminal text.
+ const terminalActions = (
+ <div className="inline-flex h-full items-stretch">
+ <TerminalActionButton
+ disabled={!canOperateTerminal}
+ className={`inline-flex h-full items-center px-1 text-foreground/90 transition-colors ${
+ hasReachedSplitLimit
+ ? "cursor-not-allowed opacity-64 hover:bg-transparent"
+ : "hover:bg-accent/70"
+ }`}
+ onClick={onSplitTerminalAction}
+ label={splitTerminalActionLabel}
+ >
+ <SquareSplitHorizontal className="size-3.25" />
+ </TerminalActionButton>
+ <TerminalActionButton
+ disabled={!canOperateTerminal}
+ className={`inline-flex h-full items-center border-l border-border/70 px-1 text-foreground/90 transition-colors ${
+ hasReachedSplitLimit
+ ? "cursor-not-allowed opacity-64 hover:bg-transparent"
+ : "hover:bg-accent/70"
+ }`}
+ onClick={onSplitTerminalVerticalAction}
+ label={splitTerminalVerticalActionLabel}
+ >