11import React , { useEffect , useId , useState } from "react" ;
22import { Modal , ModalInfo , ModalActions , CancelButton , PrimaryButton } from "./Modal" ;
3- import { TooltipWrapper , Tooltip } from "./Tooltip " ;
3+ import { Tooltip , TooltipTrigger , TooltipContent } from "@/components/ui/tooltip " ;
44import { formatNewCommand } from "@/utils/chatCommands" ;
55
66interface NewWorkspaceModalProps {
@@ -102,11 +102,13 @@ const NewWorkspaceModal: React.FC<NewWorkspaceModalProps> = ({
102102 < form onSubmit = { ( event ) => void handleSubmit ( event ) } >
103103 < div className = "[&_label]:text-foreground [&_input]:bg-modal-bg [&_input]:border-border-medium [&_input]:focus:border-accent [&_select]:bg-modal-bg [&_select]:border-border-medium [&_select]:focus:border-accent [&_option]:bg-modal-bg mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60" >
104104 < label htmlFor = "branchName" >
105- < TooltipWrapper inline >
106- < span className = "cursor-help underline decoration-[#666] decoration-dotted underline-offset-2" >
107- Workspace Branch Name:
108- </ span >
109- < Tooltip width = "wide" position = "bottom" interactive >
105+ < Tooltip >
106+ < TooltipTrigger asChild >
107+ < span className = "cursor-help underline decoration-[#666] decoration-dotted underline-offset-2" >
108+ Workspace Branch Name:
109+ </ span >
110+ </ TooltipTrigger >
111+ < TooltipContent className = "max-w-md" side = "bottom" >
110112 < strong > About Workspaces:</ strong >
111113 < ul className = "my-1 pl-4" >
112114 < li > Uses git worktrees (separate directories sharing .git)</ li >
@@ -117,8 +119,8 @@ const NewWorkspaceModal: React.FC<NewWorkspaceModalProps> = ({
117119 < a href = "https://cmux.io/workspaces.html" target = "_blank" rel = "noopener noreferrer" >
118120 Learn more
119121 </ a >
120- </ Tooltip >
121- </ TooltipWrapper >
122+ </ TooltipContent >
123+ </ Tooltip >
122124 </ label >
123125 < input
124126 id = "branchName"
0 commit comments