Elffuss BraidHub

kikocis/continue public

fix: :lipstick: Fix border width, and status separator
Changesetcf44248155ac366c39a34e10d2ebf962c105ae8bd6e9f61b03a1be8b5fbc9fd4
Authorchezsmithy <chezsmithy@me.com> · 2025-08-26 23:34 -07:00
Committerchezsmithy <chezsmithy@me.com> · 2025-08-26 23:34 -07:00
Parentsc24a0eea7573

Browse the files at this changeset

1 file changed

modified gui/src/components/UnifiedTerminal/UnifiedTerminal.tsx +17 −44
@@ -7,12 +7,6 @@
77 import { useAppDispatch } from "../../redux/hooks";
88 import { moveTerminalProcessToBackground } from "../../redux/thunks/moveTerminalProcessToBackground";
99 import { getFontSize } from "../../util";
10-import {
11- defaultBorderRadius,
12- vscBackground,
13- vscEditorBackground,
14- vscForeground,
15-} from "../index";
1610 import { CopyButton } from "../StyledMarkdownPreview/StepContainerPreToolbar/CopyButton";
1711 import { RunInTerminalButton } from "../StyledMarkdownPreview/StepContainerPreToolbar/RunInTerminalButton";
1812 import { ButtonContent, SpoilerButton } from "../ui/SpoilerButton";
@@ -26,7 +20,7 @@
2620 &::after {
2721 content: "█";
2822 animation: ${blinkCursor} 1s infinite;
29- color: ${vscForeground};
23+ color: var(--foreground);
3024 }
3125 `;
3226
@@ -60,7 +54,7 @@
6054 `;
6155
6256 const AnsiLink = styled.a`
63- color: var(--vscode-textLink-foreground, #3794ff);
57+ color: var(--link);
6458 text-decoration: none;
6559 &:hover {
6660 text-decoration: underline;
@@ -69,24 +63,11 @@
6963
7064 const StyledTerminalContainer = styled.div<{
7165 fontSize?: number;
72- bgColor: string;
7366 }>`
74- background-color: ${(props) => props.bgColor};
75- font-family:
76- var(--vscode-font-family),
77- system-ui,
78- -apple-system,
79- BlinkMacSystemFont,
80- "Segoe UI",
81- Roboto,
82- Oxygen,
83- Ubuntu,
84- Cantarell,
85- "Open Sans",
86- "Helvetica Neue",
87- sans-serif;
67+ background-color: var(--background);
68+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
8869 font-size: ${(props) => props.fontSize || getFontSize()}px;
89- color: ${vscForeground};
70+ color: var(--foreground);
9071 line-height: 1.5;
9172
9273 > *:last-child {
@@ -109,27 +90,18 @@
10990 display: none;
11091 }
11192 word-wrap: break-word;
112- border-radius: ${defaultBorderRadius};
113- background-color: ${vscEditorBackground};
93+ border-radius: 0.5rem;
94+ background-color: var(--editor-background);
11495 font-size: ${getFontSize() - 2}px;
115- font-family: var(--vscode-editor-font-family);
96+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
11697 }
11798
11899 code:not(pre > code) {
119- font-family: var(--vscode-editor-font-family);
120- color: var(--vscode-input-placeholderForeground);
100+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
101+ color: var(--input-placeholder);
121102 }
122103 `;
123104
124-const ToolbarContainer = styled.div<{ isExpanded: boolean }>`
125- font-size: ${getFontSize() - 2}px;
126-`;
127-
128-const CommandLine = styled.div`
129- padding-bottom: 0.5rem;
130- color: var(--vscode-terminal-ansiGreen, #0dbc79);
131-`;
132-
133105 function ansiToJSON(
134106 input: string,
135107 use_classes: boolean = false,
@@ -434,7 +406,6 @@
434406 return (
435407 <StyledTerminalContainer
436408 fontSize={getFontSize()}
437- bgColor={vscBackground}
438409 className="mb-4"
439410 >
440411 <div className="outline-command-border -outline-offset-0.5 rounded-default bg-editor !my-2 flex min-w-0 flex-col outline outline-1">
@@ -450,11 +421,11 @@
450421 <div className="flex max-w-[50%] flex-row items-center">
451422 <ChevronDownIcon
452423 onClick={() => setIsExpanded(!isExpanded)}
453- className={`text-lightgray h-3.5 w-3.5 flex-shrink-0 cursor-pointer hover:brightness-125 ${
424+ className={`text-description h-3.5 w-3.5 flex-shrink-0 cursor-pointer hover:brightness-125 ${
454425 isExpanded ? "rotate-0" : "-rotate-90"
455426 }`}
456427 />
457- <span className="text-lightgray ml-2 select-none">Terminal</span>
428+ <span className="text-description ml-2 select-none">Terminal</span>
458429 </div>
459430
460431 <div className="flex items-center gap-2.5">
@@ -474,8 +445,7 @@
474445 <code>
475446 {/* Command is always visible */}
476447 <div
477- className="pb-2"
478- style={{ color: "var(--vscode-terminal-ansiGreen, #0DBC79)" }}
448+ className="pb-2 text-terminal"
479449 >
480450 $ {command}
481451 </div>
@@ -528,7 +498,10 @@
528498
529499 {/* Status information */}
530500 {(statusMessage || isRunning) && (
531- <div className="text-description mt-2 flex items-center px-2 pb-2 text-xs">
501+ <div
502+ className="text-description flex items-center px-2 pb-2 pt-2 text-xs"
503+ style={{ borderTop: '1px solid var(--vscode-commandCenter-inactiveBorder, #555555)' }}
504+ >
532505 <StatusIcon status={statusType} />
533506 {isRunning ? "Running" : statusMessage}
534507 {isRunning && toolCallId && (