Skip to content

Commit

Permalink
nit: fix delay duration
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 4, 2024
1 parent 4bb9c46 commit 5fe453e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions web/src/app/admin/assistants/AssistantEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export function AssistantEditor({
align="start"
side="bottom"
/>
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
<FiInfo size={12} />
Expand Down Expand Up @@ -607,7 +607,7 @@ export function AssistantEditor({
<div className="block font-medium text-base">
Default AI Model{" "}
</div>
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
<FiInfo size={12} />
Expand Down Expand Up @@ -702,7 +702,7 @@ export function AssistantEditor({
<div className="block font-medium text-base">
Capabilities{" "}
</div>
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
<FiInfo size={12} />
Expand All @@ -720,7 +720,7 @@ export function AssistantEditor({

<div className="mt-4 flex flex-col gap-y-4 ml-1">
{imageGenerationTool && (
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<div
Expand Down Expand Up @@ -768,7 +768,7 @@ export function AssistantEditor({
)}

{searchTool && (
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<div
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/chat/files/InputBarPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function InputBarPreview({
</div>
</div>
<div className="ml-2 relative">
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<div
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/chat/files/documents/DocumentPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function DocumentPreview({
</div>
</div>
<div className="ml-4 flex-grow">
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<div
Expand Down Expand Up @@ -140,7 +140,7 @@ export function InputDocumentPreview({
</div>
</div>
<div className="ml-2 relative">
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger asChild>
<div
Expand Down
4 changes: 2 additions & 2 deletions web/src/app/chat/message/SearchSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ export function SearchSummary({
)}
</div>
{handleSearchQueryEdit && (
<TooltipProvider>
<Tooltip delayDuration={1000}>
<TooltipProvider delayDuration={1000}>
<Tooltip>
<TooltipTrigger asChild>
<button
className="my-auto hover:bg-hover p-1.5 rounded"
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/admin/connectors/Field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function ToolTipDetails({
children: string | JSX.Element;
}) {
return (
<TooltipProvider delayDuration={50}>
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
<FiInfo size={12} />
Expand Down
8 changes: 4 additions & 4 deletions web/src/components/header/LogoType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export default function LogoType({
</div>

{page == "chat" && !showArrow && (
<TooltipProvider>
<Tooltip delayDuration={1000}>
<TooltipProvider delayDuration={1000}>
<Tooltip>
<TooltipTrigger asChild>
<Link
className="my-auto mobile:hidden"
Expand Down Expand Up @@ -111,8 +111,8 @@ export default function LogoType({
</TooltipProvider>
)}
{showArrow && toggleSidebar && (
<TooltipProvider>
<Tooltip delayDuration={0}>
<TooltipProvider delayDuration={0}>
<Tooltip>
<TooltipTrigger asChild>
<button
className="mr-3 my-auto ml-auto"
Expand Down

0 comments on commit 5fe453e

Please sign in to comment.