Skip to content

Commit bcbbf32

Browse files
fix(app): use v2 tooltip for prompt context (#35351)
Co-authored-by: Jay <53023+jayair@users.noreply.github.com> Co-authored-by: Jay <air@live.ca>
1 parent 7a8e7c8 commit bcbbf32

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/app/src/components/prompt-input/context-items.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, For, Show } from "solid-js"
22
import { FileIcon } from "@opencode-ai/ui/file-icon"
33
import { IconButton } from "@opencode-ai/ui/icon-button"
4-
import { Tooltip } from "@opencode-ai/ui/tooltip"
4+
import { TooltipV2 } from "@opencode-ai/ui/v2/tooltip-v2"
55
import { getDirectory, getFilename, getFilenameTruncated } from "@opencode-ai/core/util/path"
66
import type { ContextItem } from "@/context/prompt"
77

@@ -27,7 +27,7 @@ export const PromptContextItems: Component<ContextItemsProps> = (props) => {
2727
const selected = props.active(item)
2828

2929
return (
30-
<Tooltip
30+
<TooltipV2
3131
value={
3232
<span class="flex max-w-[300px]">
3333
<span class="text-text-invert-base truncate-start [unicode-bidi:plaintext] min-w-0">
@@ -78,7 +78,7 @@ export const PromptContextItems: Component<ContextItemsProps> = (props) => {
7878
{(comment) => <div class="text-12-regular text-text-strong ml-5 pr-1 truncate">{comment()}</div>}
7979
</Show>
8080
</div>
81-
</Tooltip>
81+
</TooltipV2>
8282
)
8383
}}
8484
</For>

0 commit comments

Comments
 (0)