|
@@ -1,5 +1,6 @@
|
|
|
import { For, Show } from "solid-js"
|
|
import { For, Show } from "solid-js"
|
|
|
import { MenuV2 } from "@opencode-ai/ui/v2/menu-v2"
|
|
import { MenuV2 } from "@opencode-ai/ui/v2/menu-v2"
|
|
|
|
|
+import { TooltipV2 } from "@opencode-ai/ui/v2/tooltip-v2"
|
|
|
import { Icon } from "@opencode-ai/ui/icon"
|
|
import { Icon } from "@opencode-ai/ui/icon"
|
|
|
import { Icon as IconV2 } from "@opencode-ai/ui/v2/icon"
|
|
import { Icon as IconV2 } from "@opencode-ai/ui/v2/icon"
|
|
|
import { getFilename } from "@opencode-ai/core/util/path"
|
|
import { getFilename } from "@opencode-ai/core/util/path"
|
|
@@ -96,10 +97,17 @@ export function PromptWorkspaceSelector(props: {
|
|
|
{(branch) => (
|
|
{(branch) => (
|
|
|
<>
|
|
<>
|
|
|
<span class="hidden select-none opacity-50 sm:inline mx-1">/</span>
|
|
<span class="hidden select-none opacity-50 sm:inline mx-1">/</span>
|
|
|
- <div class="flex h-7 min-w-0 max-w-[220px] items-center gap-1.5 px-2 text-[13px] font-[440] leading-5 tracking-[-0.04px]">
|
|
|
|
|
- <Icon name="branch" size="small" class="shrink-0 text-v2-icon-icon-muted" />
|
|
|
|
|
- <span class="min-w-0 truncate">{branch()}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <TooltipV2
|
|
|
|
|
+ placement="top"
|
|
|
|
|
+ value={branch()}
|
|
|
|
|
+ class="min-w-0 max-w-[220px]"
|
|
|
|
|
+ contentClass="max-w-[calc(100vw-32px)] break-all"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="flex h-7 min-w-0 max-w-[220px] items-center gap-1.5 px-2 text-[13px] font-[440] leading-5 tracking-[-0.04px]">
|
|
|
|
|
+ <Icon name="branch" size="small" class="shrink-0 text-v2-icon-icon-muted" />
|
|
|
|
|
+ <span class="min-w-0 truncate">{branch()}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </TooltipV2>
|
|
|
</>
|
|
</>
|
|
|
)}
|
|
)}
|
|
|
</Show>
|
|
</Show>
|