File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
apps/webapp/app/components Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,15 @@ function AskAIProvider({ websiteId, isCollapsed = false }: AskAIProviderProps) {
115115 } }
116116 botProtectionMechanism = "hcaptcha"
117117 >
118- < motion . div layout = "position" transition = { { duration : 0.2 , ease : "easeInOut" } } >
118+ < motion . div
119+ layout = "position"
120+ transition = { { duration : 0.2 , ease : "easeInOut" } }
121+ className = { isCollapsed ? "w-full" : undefined }
122+ >
119123 < TooltipProvider disableHoverableContent >
120124 < Tooltip >
121- < div className = { isCollapsed ? "w-full" : "inline-flex" } >
122- < TooltipTrigger asChild >
125+ < TooltipTrigger asChild >
126+ < span className = { isCollapsed ? "flex w-full" : "inline-flex" } >
123127 < Button
124128 variant = "small-menu-item"
125129 data-action = "ask-ai"
@@ -131,12 +135,12 @@ function AskAIProvider({ websiteId, isCollapsed = false }: AskAIProviderProps) {
131135 >
132136 < AISparkleIcon className = "size-5" />
133137 </ Button >
134- </ TooltipTrigger >
135- </ div >
138+ </ span >
139+ </ TooltipTrigger >
136140 < TooltipContent
137- side = { isCollapsed ? "right" : "top" }
138- sideOffset = { isCollapsed ? 8 : 4 }
139- className = "flex items-center gap-1 py-1.5 pl-2.5 pr- 2 text-xs"
141+ side = "right"
142+ sideOffset = { 8 }
143+ className = "flex items-center gap-2 text-xs"
140144 >
141145 Ask AI
142146 < span className = "flex items-center" >
You can’t perform that action at this time.
0 commit comments