@@ -26,24 +26,16 @@ class="relative inline-block w-full"
26
26
@click = " toggle"
27
27
>
28
28
<!-- Input Container -->
29
- < div class = " relative h-10 rounded border p-2 hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark: text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400 " >
29
+ < div class = " relative rounded border border-gray-200 p-2 hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:text-gray-300" >
30
30
@ {{ selectedItem ? selectedItem : " @lang (' admin::app.components.attributes.lookup.click-to-add' )" }}
31
- < / div>
32
-
33
- <!-- Arrow down icon -->
34
- < div class = " pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3" >
35
- < i class = " fas fa-chevron-down text-gray-400" >< / i>
36
- < / div>
37
- < / div>
38
-
39
- < span class = " pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3" >
40
- < div class = " flex items-center justify-center space-x-1" >
31
+
32
+ <!-- Arrow Icon -->
41
33
< i
42
- class = " text-2xl"
43
- : class = " showPopup ? 'icon-up-arrow': 'icon-down-arrow'"
34
+ class = " absolute text-2xl ltr:right-2 rtl:left-2 "
35
+ : class = " showPopup ? 'icon-up-arrow' : 'icon-down-arrow'"
44
36
>< / i>
45
37
< / div>
46
- < / span >
38
+ < / div >
47
39
48
40
<!-- Hidden Input Entity Value -->
49
41
< input
@@ -54,38 +46,36 @@ class="text-2xl"
54
46
55
47
< div
56
48
v- if = " showPopup"
57
- class = " absolute top-full z-10 mt-1 w-full origin-top transform rounded-lg border border-gray-200 bg-white p-2 shadow-lg transition-transform dark:border-gray-900 dark:bg-gray-800"
49
+ class = " absolute top-full z-10 mt-1 flex w-full origin-top transform flex-col gap-2 rounded-lg border border-gray-200 bg-white p-2 shadow-lg transition-transform dark:border-gray-900 dark:bg-gray-800"
58
50
>
59
51
<!-- Search Bar -->
60
- < div class = " relative" >
52
+ < div class = " relative flex items-center " >
61
53
<!-- Input Box -->
62
54
< input
63
55
type= " text"
64
56
v- model .lazy = " searchTerm"
65
57
v- debounce= " 500"
66
- class = " !mb-2 w-full rounded border border-gray-200 px-2.5 py-2 text-sm font-normal text-gray-800 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
58
+ class = " w-full rounded border border-gray-200 px-2.5 py-2 text-sm font-normal text-gray-800 transition-all hover:border-gray-400 focus:border-gray-400 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:border-gray-400 dark:focus:border-gray-400"
67
59
placeholder= " @lang (' Search...' )"
68
60
ref= " searchInput"
69
61
@keyup = " search"
70
62
/ >
71
63
72
64
<!-- Search Icon (absolute positioned) -->
73
- < span class = " absolute bottom-1 top-2 right-0 flex items-center pr-3" >
74
- < div class = " flex items-center justify-center space-x-1" >
75
- <!-- Loader (optional, based on condition) -->
76
- < i
77
- v- if = " entityId && ! isSearching"
78
- class = " icon-cross-large cursor-pointer text-2xl"
79
- @click = " remove"
80
- >< / i>
81
-
82
- <!-- Loader (optional, based on condition) -->
83
- < div
84
- class = " relative"
85
- v- if = " isSearching"
86
- >
87
- < x- admin:: spinner / >
88
- < / div>
65
+ < span class = " absolute flex items-center ltr:right-2 rtl:left-2" >
66
+ <!-- Close Icon -->
67
+ < i
68
+ v- if = " entityId && ! isSearching"
69
+ class = " icon-cross-large cursor-pointer text-2xl text-gray-600"
70
+ @click = " remove"
71
+ >< / i>
72
+
73
+ <!-- Loader (optional, based on condition) -->
74
+ < div
75
+ class = " relative"
76
+ v- if = " isSearching"
77
+ >
78
+ < x- admin:: spinner / >
89
79
< / div>
90
80
< / span>
91
81
< / div>
0 commit comments