Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): terminal controls stop covering terminal text #19073

Closedrywible(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/19073/headopened View on GitHub

Showing 1 changed file with 49 additions and 88 deletions.

x
0 of 1 viewed, 1 left
49 additions and 88 deletionsapps/web/src/components/ThreadTerminalDrawer.tsxModified
View file
@@ -1751,6 +1751,52 @@
const activeTerminalLaunchLocation = resolveTerminalLaunchLocation(resolvedActiveTerminalId);
+ // Single and multi-terminal layouts share one toolbar so the controls look the
+ // same whether they sit in their own row or in the terminal sidebar header.
+ 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}
+ >