From c6b241387ff0e6a4ed77a53c4479d0f85a609913 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 10 Jan 2025 06:12:41 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- ee/tabby-ui/components/chat/chat-panel.tsx | 10 +++++----- ee/tabby-ui/components/chat/form-editor/utils.tsx | 10 +++++----- ee/tabby-ui/components/chat/prompt-form.tsx | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ee/tabby-ui/components/chat/chat-panel.tsx b/ee/tabby-ui/components/chat/chat-panel.tsx index 0b8b3748295e..80c40d826f4e 100644 --- a/ee/tabby-ui/components/chat/chat-panel.tsx +++ b/ee/tabby-ui/components/chat/chat-panel.tsx @@ -1,4 +1,4 @@ -import React, { RefObject, useEffect, useMemo, useState } from 'react' +import React, { RefObject, useMemo, useState } from 'react' import slugify from '@sindresorhus/slugify' import { useWindowSize } from '@uidotdev/usehooks' import type { UseChatHelpers } from 'ai/react' @@ -258,7 +258,7 @@ function ChatPanelRenderer( ease: 'easeInOut', duration: 0.1 }} - exit={{ opacity: 0, scale: 0.9, y: 5 }} + exit={{ opacity: 0, scale: 0.9, y: -5 }} > { updateEnableActiveSelection(!enableActiveSelection) }} @@ -303,7 +303,7 @@ function ChatPanelRenderer( ease: 'easeInOut', duration: 0.1 }} - exit={{ opacity: 0, scale: 0.9, y: 5 }} + exit={{ opacity: 0, scale: 0.9, y: -5 }} layout > diff --git a/ee/tabby-ui/components/chat/form-editor/utils.tsx b/ee/tabby-ui/components/chat/form-editor/utils.tsx index c70ef00e45b9..55ad9e5405a8 100644 --- a/ee/tabby-ui/components/chat/form-editor/utils.tsx +++ b/ee/tabby-ui/components/chat/form-editor/utils.tsx @@ -28,7 +28,7 @@ export function fileItemToSourceItem(info: FileItem): SourceItem { */ export const FileItemIcon = () => ( { @@ -161,7 +161,7 @@ export const MentionList = ({ > {/* If no items found, show a simple message */} {!items.length ? ( -
+
Cannot find any files.
) : ( @@ -183,7 +183,7 @@ export const MentionList = ({ > {shortenLabel(item.name)} - + {shortenLabel(item.filepath, 20)} diff --git a/ee/tabby-ui/components/chat/prompt-form.tsx b/ee/tabby-ui/components/chat/prompt-form.tsx index 6cbc31e55ec9..7844834e2a03 100644 --- a/ee/tabby-ui/components/chat/prompt-form.tsx +++ b/ee/tabby-ui/components/chat/prompt-form.tsx @@ -278,7 +278,7 @@ function PromptFormRenderer(
{/* Editor & Submit row */}
- +
{/* TipTap editor content */}