Skip to content

Commit 1241a08

Browse files
committed
Make the UI more consistent with current
1 parent a34751b commit 1241a08

24 files changed

+171
-183
lines changed

src/components/AIView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ const AIViewInner: React.FC<AIViewProps> = ({
342342
workspaceId={workspaceId}
343343
tooltipPosition="bottom"
344344
/>
345-
<span className="whitespace-nowrap overflow-hidden text-ellipsis min-w-0">
345+
<span className="font-mono text-xs whitespace-nowrap overflow-hidden text-ellipsis min-w-0">
346346
{projectName} / {branch}
347347
</span>
348348
<span className="font-mono text-[#888] font-normal text-[11px] whitespace-nowrap overflow-hidden text-ellipsis min-w-0">

src/components/ChatInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ export const ChatInput: React.FC<ChatInputProps> = ({
704704

705705
return (
706706
<div
707-
className="relative pt-[5px] px-[15px] pb-[15px] bg-[#252526] border-t border-[#3e3e42] flex flex-col gap-2"
707+
className="relative pt-[5px] px-[15px] pb-[15px] bg-[#252526] border-t border-[#3e3e42] flex flex-col gap-1"
708708
style={{ containerType: "inline-size" }}
709709
data-component="ChatInputSection"
710710
>
@@ -792,8 +792,8 @@ export const ChatInput: React.FC<ChatInputProps> = ({
792792
>
793793
<ToggleGroup<UIMode>
794794
options={[
795-
{ value: "exec", label: "Exec" },
796-
{ value: "plan", label: "Plan" },
795+
{ value: "exec", label: "Exec", activeClassName: "bg-exec-mode text-white" },
796+
{ value: "plan", label: "Plan", activeClassName: "bg-plan-mode text-white" },
797797
]}
798798
value={mode}
799799
onChange={setMode}

src/components/KebabMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const KebabMenu: React.FC<KebabMenuProps> = ({ items, className }) => {
110110
onClick={() => handleItemClick(item)}
111111
title={item.tooltip}
112112
className={cn(
113-
"w-full border-none border-b border-[#2d2d30] text-[11px] py-2 px-3 text-left transition-all duration-150 font-primary flex items-center gap-2",
113+
"w-full border-none border-b border-[#2d2d30] text-xs py-2 px-3 text-left transition-all duration-150 font-primary flex items-center gap-2",
114114
"last:border-b-0",
115115
item.disabled
116116
? "bg-[#1e1e1e] text-[#808080] cursor-not-allowed opacity-50 hover:bg-[#1e1e1e] hover:text-[#808080]"

src/components/Messages/AssistantMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const AssistantMessage: React.FC<AssistantMessageProps> = ({
9090
// Empty streaming state
9191
if (isStreaming && !content) {
9292
return (
93-
<div className="font-primary text-[13px] text-text-secondary italic">
93+
<div className="font-primary text-[13px] text-secondary italic">
9494
Waiting for response...
9595
</div>
9696
);

src/components/Messages/MessageWindow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ export const MessageWindow: React.FC<MessageWindowProps> = ({
7373
>
7474
<div className="flex items-baseline gap-3 min-w-0 flex-1" data-message-header-left>
7575
<div
76-
className="inline-flex items-baseline uppercase tracking-wider whitespace-nowrap overflow-hidden min-w-0"
76+
className="font-mono inline-flex items-baseline uppercase tracking-wider whitespace-nowrap overflow-hidden min-w-0"
7777
data-message-type-label
7878
>
7979
{label}
8080
</div>
8181
{formattedTimestamp && (
82-
<span className="text-[10px] text-text-secondary font-normal" data-message-timestamp>
82+
<span className="text-[10px] font-normal font-mono opacity-50" data-message-timestamp>
8383
{formattedTimestamp}
8484
</span>
8585
)}

src/components/Messages/ModelDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const ModelDisplay: React.FC<ModelDisplayProps> = ({ modelString, showToo
4747
{providerIcon}
4848
</span>
4949
)}
50-
<span className="inline">{displayName}</span>
50+
<span className="font-mono inline">{displayName}</span>
5151
</span>
5252
);
5353

src/components/Messages/ReasoningMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const ReasoningMessage: React.FC<ReasoningMessageProps> = ({ message, cla
7272
</div>
7373

7474
{isExpanded && (
75-
<div className="font-primary text-xs leading-6 text-text-secondary italic opacity-85 [&_p]:mb-1 [&_p]:mt-0 [&_p:last-child]:mb-0">
75+
<div className="font-primary text-sm leading-6 italic opacity-85 [&_p]:mb-1 [&_p]:mt-0 [&_p:last-child]:mb-0">
7676
{renderContent()}
7777
</div>
7878
)}

src/components/Messages/StreamErrorMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const StreamErrorMessage: React.FC<StreamErrorMessageProps> = ({ message,
1616
<div className="font-primary text-[13px] font-semibold text-error mb-3 flex items-center gap-2.5 tracking-wide">
1717
<span className="text-base leading-none"></span>
1818
<span>Stream Error</span>
19-
<span className="font-mono text-[10px] text-text-secondary uppercase bg-black/40 px-2 py-0.5 rounded-sm tracking-wider">
19+
<span className="font-mono text-[10px] text-secondary uppercase bg-black/40 px-2 py-0.5 rounded-sm tracking-wider">
2020
{message.errorType}
2121
</span>
2222
{showCount && (

src/components/Messages/UserMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export const UserMessage: React.FC<UserMessageProps> = ({
121121
className={className}
122122
>
123123
{content && (
124-
<pre className="m-0 font-mono text-xs leading-6 whitespace-pre-wrap break-words text-[#999999] opacity-90">
124+
<pre className="m-0 font-mono text-xs leading-4 whitespace-pre-wrap break-words text-[#999999] opacity-90">
125125
{content}
126126
</pre>
127127
)}

src/components/ModelSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const ModelSelector = forwardRef<ModelSelectorRef, ModelSelectorProps>(
185185
return (
186186
<div ref={containerRef} className="relative flex items-center gap-1">
187187
<div
188-
className="text-[10px] text-[#808080] font-monospace leading-[11px] cursor-pointer py-0.5 px-1 rounded-sm transition-colors duration-200 whitespace-nowrap overflow-hidden text-ellipsis max-w-[150px] dir-rtl text-left hover:bg-[#2a2a2b]"
188+
className="font-mono text-[10px] text-[#808080] font-monospace leading-[11px] cursor-pointer py-0.5 px-1 rounded-sm transition-colors duration-200 whitespace-nowrap overflow-hidden text-ellipsis max-w-[150px] dir-rtl text-left hover:bg-[#2a2a2b]"
189189
onClick={handleClick}
190190
>
191191
{value}

0 commit comments

Comments
 (0)