Skip to content

Commit

Permalink
fix(ui): fix bg color of search bar (#2775)
Browse files Browse the repository at this point in the history
* fix(ui): fix bg color of search bar

* update

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
liangfung and autofix-ci[bot] authored Aug 2, 2024
1 parent ae385b7 commit 61f748a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ee/tabby-ui/app/files/components/code-search-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export const CodeSearchBar: React.FC<CodeSearchBarProps> = ({ className }) => {
</div>
{!query && (
<div
className="absolute left-3 top-1.5 select-none text-muted-foreground"
className="absolute left-3 top-1.5 cursor-text select-none text-muted-foreground"
onClick={e => {
e.preventDefault()
inputRef.current?.focus()
Expand Down Expand Up @@ -308,7 +308,7 @@ export const CodeSearchBar: React.FC<CodeSearchBarProps> = ({ className }) => {
{isOpen && (
<div
className={cn(
'absolute -inset-x-3 -top-2 flex max-h-[60vh] flex-col overflow-hidden rounded-lg border bg-popover p-4 shadow-2xl',
'absolute -inset-x-3 -top-2.5 flex max-h-[60vh] flex-col overflow-hidden rounded-lg border bg-background p-4 shadow-2xl dark:border-2 dark:border-[#33363c] dark:bg-[hsl(0,0,13.5%)]',
{
'pb-0.5': noOptions
}
Expand Down Expand Up @@ -343,7 +343,7 @@ export const CodeSearchBar: React.FC<CodeSearchBarProps> = ({ className }) => {
<div
key={item.repositorySearch?.path}
className={cn(
'relative flex cursor-default select-none items-center gap-1 rounded-sm px-2 py-1.5 text-sm outline-none',
'relative flex cursor-default select-none items-center gap-1 rounded-sm px-2 py-1.5 text-sm',
highlighted &&
'cursor-pointer bg-accent text-accent-foreground'
)}
Expand Down

0 comments on commit 61f748a

Please sign in to comment.