fix: fine-tune search capsule border alignment and fix RTL placeholder text using unicode ellipsis
This commit is contained in:
1 parent
24bf530e50
commit
40c9618ddf
1 file changed
+4
-4
@@ -211,7 +211,7 @@ export default function Header({
|
||||
animate={{ width: 320, opacity: 1 }}
|
||||
exit={{ width: 0, opacity: 0 }}
|
||||
transition={{ type: "spring", damping: 25, stiffness: 220 }}
|
||||
className="absolute right-0 top-1/2 -translate-y-1/2 bg-white border border-canina-blue/30 rounded-2xl shadow-xl shadow-canina-blue/5 overflow-hidden h-12 flex items-center pr-12 pl-4 z-25"
|
||||
className="absolute right-0 top-1/2 -translate-y-1/2 bg-white border border-canina-blue/30 border-l rounded-2xl shadow-xl shadow-canina-blue/5 overflow-hidden h-12 flex items-center pr-12 pl-4 z-25"
|
||||
>
|
||||
<form onSubmit={handleSearch} className="w-full flex items-center">
|
||||
<input
|
||||
@@ -220,9 +220,9 @@ export default function Header({
|
||||
value={searchQuery}
|
||||
onChange={e => setSearchQuery(e.target.value)}
|
||||
onBlur={() => !searchQuery && setIsSearchFocused(false)}
|
||||
placeholder="جستجوی محصولات، مقالات سلامت و ... "
|
||||
placeholder="جستجوی محصولات، مقالات سلامت و غیره…"
|
||||
dir="rtl"
|
||||
className="w-full bg-transparent py-2 text-[12px] font-black outline-none font-vazir text-medical-gray-900 text-right placeholder:text-medical-gray-400"
|
||||
className="w-full bg-transparent py-2 text-[12px] font-black outline-none font-vazir text-medical-gray-900 text-right placeholder:text-medical-gray-400 placeholder:text-right"
|
||||
/>
|
||||
<input type="submit" className="hidden" />
|
||||
</form>
|
||||
@@ -235,7 +235,7 @@ export default function Header({
|
||||
className={cn(
|
||||
"w-12 h-12 transition-all duration-300",
|
||||
isSearchFocused
|
||||
? "z-30 bg-canina-blue text-white rounded-r-2xl rounded-l-none"
|
||||
? "z-30 bg-canina-blue text-white rounded-r-2xl rounded-l-none border border-canina-blue border-l-0 shadow-none"
|
||||
: "rounded-2xl"
|
||||
)}
|
||||
onClick={() => {
|
||||
|
||||
Reference in new issue
Block a user