Compare commits
2 Commits
258deda01f
...
369f21a9db
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
369f21a9db | ||
|
|
3ff01447e3 |
2966
backend/server.log
2966
backend/server.log
File diff suppressed because it is too large
Load Diff
@ -93,13 +93,16 @@ export function HeaderSearch({ defaultDataSource }: { defaultDataSource?: string
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{open && results.length > 0 && (
|
{open && results.length > 0 && (
|
||||||
<div className="absolute top-full mt-2 left-0 w-full bg-popover text-popover-foreground rounded-md border shadow-md z-[80] overflow-hidden max-h-[400px] overflow-y-auto">
|
<div className="absolute top-full mt-2 left-0 w-full bg-popover text-popover-foreground rounded-md border shadow-md z-[90] overflow-hidden max-h-[400px] overflow-y-auto">
|
||||||
<div className="p-1">
|
<div className="p-1">
|
||||||
{results.map((result) => (
|
{results.map((result) => (
|
||||||
<button
|
<button
|
||||||
key={`${result.market}-${result.symbol}`}
|
key={`${result.market}-${result.symbol}`}
|
||||||
className="w-full flex items-center justify-between p-2 hover:bg-accent hover:text-accent-foreground rounded-sm text-sm text-left transition-colors"
|
className="w-full flex items-center justify-between p-2 hover:bg-accent hover:text-accent-foreground rounded-sm text-sm text-left transition-colors"
|
||||||
onClick={() => handleSelect(result)}
|
onMouseDown={(e) => {
|
||||||
|
e.preventDefault() // Prevent focus loss
|
||||||
|
handleSelect(result)
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div className="flex flex-col overflow-hidden">
|
<div className="flex flex-col overflow-hidden">
|
||||||
<span className="font-medium truncate">{result.company_name}</span>
|
<span className="font-medium truncate">{result.company_name}</span>
|
||||||
|
|||||||
@ -82,7 +82,7 @@ export function NavHeader() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 z-[60]">
|
<header className="border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 z-[60] relative">
|
||||||
<div className="flex h-14 items-center gap-4 px-6 lg:h-[60px] w-full px-8"> {/* Adjusted constraint */}
|
<div className="flex h-14 items-center gap-4 px-6 lg:h-[60px] w-full px-8"> {/* Adjusted constraint */}
|
||||||
<Link className="flex items-center gap-2 font-semibold min-w-[140px]" href="/">
|
<Link className="flex items-center gap-2 font-semibold min-w-[140px]" href="/">
|
||||||
<MonitorPlay className="h-6 w-6" />
|
<MonitorPlay className="h-6 w-6" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user