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 Jan 15, 2025
1 parent f2aaba0 commit 39daf96
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion ee/tabby-ui/app/(home)/components/thread-feeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function ThreadItem({ data }: ThreadItemProps) {
href={title ? `/search/${titleSlug}-${threadId}` : `/search/${threadId}`}
onClick={onNavigateToThread}
>
<div className="transform-bg hover:bg-accent group flex-1 overflow-hidden rounded-lg px-3 py-2">
<div className="transform-bg group flex-1 overflow-hidden rounded-lg px-3 py-2 hover:bg-accent">
<div className="mb-1.5 flex items-center gap-2">
<IconFiles className="shrink-0" />
<LoadingWrapper
Expand Down
10 changes: 5 additions & 5 deletions ee/tabby-ui/components/chat/form-editor/mention.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ import { fileItemToSourceItem, shortenLabel } from './utils'
*/
export const MentionComponent = ({ node }: { node: any }) => {
return (
<NodeViewWrapper className="inline-block align-middle -my-1">
<NodeViewWrapper className="-my-1 inline-block align-middle">
<span
className={cn(
'bg-muted prose text-foreground inline-flex gap-0.5 items-center rounded px-1.5 py-0.5 text-sm font-medium',
'ring-muted ring-1 ring-inset',
'prose inline-flex items-center gap-0.5 rounded bg-muted px-1.5 py-0.5 text-sm font-medium text-foreground',
'ring-1 ring-inset ring-muted',
'relative top-[0.1em]'
)}
data-category={node.attrs.category}
Expand Down Expand Up @@ -169,7 +169,7 @@ export const MentionList = forwardRef<MentionListActions, MentionListProps>(
}))

return (
<div className="max-h-[300px] overflow-auto p-1 bg-popover border rounded-md">
<div className="max-h-[300px] overflow-auto rounded-md border bg-popover p-1">
{/* If no items are found, show a message. */}
{!items.length ? (
<div className="px-2 py-1.5 text-sm text-muted-foreground">
Expand Down Expand Up @@ -216,7 +216,7 @@ function OptionItemView({ isSelected, data, ...rest }: OptionItemView) {
return (
<div
className={cn(
'flex cursor-pointer gap-1 rounded-md px-2 py-1.5 text-sm items-center flex-nowrap',
'flex cursor-pointer flex-nowrap items-center gap-1 rounded-md px-2 py-1.5 text-sm',
{
'bg-accent text-accent-foreground': isSelected
}
Expand Down
6 changes: 3 additions & 3 deletions ee/tabby-ui/components/chat/prompt-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function PromptFormRenderer(
instance.popper.style.maxWidth = `${targetWidth}px`
// instance.popper.style.maxWidth = `${targetWidth}px`
// instance.popper.style.width = `calc(${targetWidth}px - 1rem)`
instance.popper.style.width = `${targetWidth-16}px`
instance.popper.style.width = `${targetWidth - 16}px`
}

const handleResize = () => {
Expand Down Expand Up @@ -126,7 +126,7 @@ function PromptFormRenderer(
placement: 'top-start',
animation: 'shift-away',
maxWidth: document.documentElement.clientWidth,
offset({ placement, popper, reference}) {
offset({ placement, popper, reference }) {
return [8, 6]
},
onCreate(instance) {
Expand Down Expand Up @@ -262,7 +262,7 @@ function PromptFormRenderer(
<IconEdit className="h-4 w-4" />
</span>
<div
className="flex-1 max-h-32 overflow-y-auto py-4"
className="max-h-32 flex-1 overflow-y-auto py-4"
onClick={e => {
if (editor && !editor.isFocused) {
editor?.commands.focus()
Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-ui/components/message-markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ function FileTag({

return (
<span
className={cn('symbol bg-muted leading-5 py-0.5', className, {
className={cn('symbol bg-muted py-0.5 leading-5', className, {
'space-x-1 cursor-pointer hover:bg-muted/50 border whitespace-nowrap align-middle py-0.5':
true
})}
Expand Down

0 comments on commit 39daf96

Please sign in to comment.