Build [v1.14.31]
This commit is contained in:
@@ -118,14 +118,14 @@ export default function SearchModal({
|
||||
aria-label="Close search modal"
|
||||
className="p-2 hover:bg-black border border-transparent hover:border-border transition-colors"
|
||||
>
|
||||
<X size={20} className="text-slate-400" />
|
||||
<X size={20} className="text-secondary" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Search Input */}
|
||||
<div className="p-4 border-b border-border">
|
||||
<div className="relative">
|
||||
<Search size={18} className="absolute left-3 top-1/2 -translate-y-1/2 text-slate-500 pointer-events-none" />
|
||||
<Search size={18} className="absolute left-3 top-1/2 -translate-y-1/2 text-secondary pointer-events-none" />
|
||||
<input
|
||||
ref={inputRef}
|
||||
type="text"
|
||||
@@ -148,20 +148,20 @@ export default function SearchModal({
|
||||
|
||||
{isLoading && (
|
||||
<div className="flex items-center justify-center py-8">
|
||||
<div className="text-slate-400">
|
||||
<div className="text-secondary">
|
||||
<div className="inline-block animate-spin h-6 w-6 border border-slate-600 border-t-primary"></div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!isLoading && !error && results.length === 0 && query.length > 0 && (
|
||||
<div className="p-4 text-slate-500 text-center">
|
||||
<div className="p-4 text-secondary text-center">
|
||||
No Items Found Matching "{query}"
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!isLoading && !error && results.length === 0 && query.length === 0 && (
|
||||
<div className="p-4 text-slate-500 text-center">
|
||||
<div className="p-4 text-secondary text-center">
|
||||
Start typing to search
|
||||
</div>
|
||||
)}
|
||||
@@ -182,7 +182,7 @@ export default function SearchModal({
|
||||
Qty: {item.quantity}
|
||||
</span>
|
||||
</div>
|
||||
<div className="text-xs text-slate-500 space-y-1">
|
||||
<div className="text-xs text-secondary space-y-1">
|
||||
{item.part_number && (
|
||||
<div>PN: {item.part_number}</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user