Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Apr 1, 2024
1 parent 20acc87 commit 4945d51
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 17 deletions.
1 change: 0 additions & 1 deletion ee/tabby-ui/app/files/components/code-editor-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { markTagNameExtension } from '@/components/codemirror/name-tag-extension
import { highlightTagExtension } from '@/components/codemirror/tag-range-highlight-extension'
import { codeTagHoverTooltip } from '@/components/codemirror/tooltip-extesion'

import { CodeBrowserQuickAction, emitter } from '../lib/event-emitter'
import { ActionBarWidgetExtension } from './action-bar-widget/action-bar-widget-extension'

interface CodeEditorViewProps {
Expand Down
19 changes: 5 additions & 14 deletions ee/tabby-ui/app/files/components/completion-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
import React from 'react'
import Image from 'next/image'
import tabbyLogo from '@/assets/tabby.png'
import { Message } from 'ai'

import { useStore } from '@/lib/hooks/use-store'
import {
addChat,
clearChats,
deleteChat,
setActiveChatId
} from '@/lib/stores/chat-actions'
import { useChatStore } from '@/lib/stores/chat-store'
import { getChatById } from '@/lib/stores/utils'
import { cn, nanoid, truncateText } from '@/lib/utils'
import { cn } from '@/lib/utils'
import { Button } from '@/components/ui/button'
import {
IconClose,
IconHistory,
IconPlus,
IconTrash
} from '@/components/ui/icons'
import { IconClose, IconTrash } from '@/components/ui/icons'
import {
Tooltip,
TooltipContent,
TooltipTrigger
} from '@/components/ui/tooltip'
import { Chat, ChatRef } from '@/components/chat'
import { ClearChatsButton } from '@/components/clear-chats-button'
import { EditChatTitleDialog } from '@/components/edit-chat-title-dialog'
import LoadingWrapper from '@/components/loading-wrapper'
import { ListSkeleton } from '@/components/skeleton'

import { CodeBrowserQuickAction } from '../lib/event-emitter'
Expand Down Expand Up @@ -98,12 +89,12 @@ export const CompletionPanel: React.FC<CompletionPanelProps> = ({
}, [pendingEvent, iframeRef.current?.contentWindow])

return (
<div className={cn('h-full flex flex-col', className)} {...props}>
<div className={cn('flex h-full flex-col', className)} {...props}>
<Header />
{completionPanelViewType === CompletionPanelView.CHAT && (
<iframe
src={`/playground`}
className="border-0 w-full flex-1"
className="w-full flex-1 border-0"
key={activeChatId}
ref={iframeRef}
/>
Expand Down Expand Up @@ -221,7 +212,7 @@ function Header() {
// }

return (
<div className="flex items-center justify-between bg-secondary px-2 py-1 sticky top-0">
<div className="sticky top-0 flex items-center justify-between bg-secondary px-2 py-1">
{/* <div className="flex items-center gap-2">
<Tooltip>
<TooltipTrigger asChild>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const FileDirectoryBreadcrumb: React.FC<FileDirectoryBreadcrumbProps> = ({

return (
<div className={cn('flex flex-nowrap items-center gap-1', className)}>
<div className="flex items-center gap-1 flex-1 truncate">
<div className="flex flex-1 items-center gap-1 truncate">
<div
className="cursor-pointer font-medium text-primary hover:underline"
onClick={e => setActivePath(undefined)}
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-ui/app/files/components/source-code-browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ const SourceCodeBrowserRenderer: React.FC<SourceCodeBrowserProps> = ({
<>
<ResizableHandle
className={cn(
'w-1 bg-border/40 hover:bg-border active:bg-border hidden',
'hidden w-1 bg-border/40 hover:bg-border active:bg-border',
completionPanelVisible && 'block'
)}
/>
Expand Down

0 comments on commit 4945d51

Please sign in to comment.