Skip to content

Commit 2505ef1

Browse files
committed
🤖 Continue Tooltip migration - Context1MCheckbox, StatusIndicator, WorkspaceListItem
_Generated with `cmux`_
1 parent f90f12d commit 2505ef1

File tree

3 files changed

+31
-25
lines changed

3 files changed

+31
-25
lines changed

‎src/components/Context1MCheckbox.tsx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ export const Context1MCheckbox: React.FC<Context1MCheckboxProps> = ({ modelStrin
2626
/>
2727
1M Context
2828
</label>
29-
<TooltipWrapper inline>
30-
<span className="text-muted flex cursor-help items-center text-[10px] leading-none">?</span>
31-
<Tooltip className="tooltip" align="center" width="auto">
29+
<Tooltip>
30+
<TooltipTrigger asChild>
31+
<span className="text-muted flex cursor-help items-center text-[10px] leading-none">?</span>
32+
</TooltipTrigger>
33+
<TooltipContent>
3234
Enable 1M token context window (beta feature for Claude Sonnet 4/4.5)
33-
</Tooltip>
34-
</TooltipWrapper>
35+
</TooltipContent>
36+
</Tooltip>
3537
</div>
3638
);
3739
};

‎src/components/StatusIndicator.tsx‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@ const StatusIndicatorInner: React.FC<StatusIndicatorProps> = ({
5151
// If title provided, wrap with proper Tooltip component
5252
if (title) {
5353
return (
54-
<TooltipWrapper inline>
55-
{indicator}
56-
<Tooltip className="tooltip" align="center">
54+
<Tooltip>
55+
<TooltipTrigger asChild>
56+
{indicator}
57+
</TooltipTrigger>
58+
<TooltipContent>
5759
{title}
58-
</Tooltip>
59-
</TooltipWrapper>
60+
</TooltipContent>
61+
</Tooltip>
6062
);
6163
}
6264

‎src/components/WorkspaceListItem.tsx‎

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -160,22 +160,24 @@ const WorkspaceListItemInner: React.FC<WorkspaceListItemProps> = ({
160160
data-workspace-path={namedWorkspacePath}
161161
data-workspace-id={workspaceId}
162162
>
163-
<TooltipWrapper inline>
164-
<button
165-
className="text-muted hover:text-foreground col-start-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center border-none bg-transparent p-0 text-base opacity-0 transition-all duration-200 hover:rounded-sm hover:bg-white/10"
166-
onClick={(e) => {
167-
e.stopPropagation();
168-
void onRemoveWorkspace(workspaceId, e.currentTarget);
169-
}}
170-
aria-label={`Remove workspace ${displayName}`}
171-
data-workspace-id={workspaceId}
172-
>
173-
×
174-
</button>
175-
<Tooltip className="tooltip" align="right">
163+
<Tooltip>
164+
<TooltipTrigger asChild>
165+
<button
166+
className="text-muted hover:text-foreground col-start-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center border-none bg-transparent p-0 text-base opacity-0 transition-all duration-200 hover:rounded-sm hover:bg-white/10"
167+
onClick={(e) => {
168+
e.stopPropagation();
169+
void onRemoveWorkspace(workspaceId, e.currentTarget);
170+
}}
171+
aria-label={`Remove workspace ${displayName}`}
172+
data-workspace-id={workspaceId}
173+
>
174+
×
175+
</button>
176+
</TooltipTrigger>
177+
<TooltipContent side="right">
176178
Remove workspace
177-
</Tooltip>
178-
</TooltipWrapper>
179+
</TooltipContent>
180+
</Tooltip>
179181
<GitStatusIndicator
180182
gitStatus={gitStatus}
181183
workspaceId={workspaceId}

0 commit comments

Comments
 (0)