aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/components/dashboard
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-05-25 12:31:51 +0000
committerMohamed Bassem <me@mbassem.com>2025-05-25 12:31:51 +0000
commitd903c7f905eae617123356fdfdf09c3075e9cae1 (patch)
tree3d223c659c133a25b03fbade6eaef4c095ac827f /apps/web/components/dashboard
parenta1f770758b5c425324bfe7ff159adb9c82d85082 (diff)
downloadkarakeep-d903c7f905eae617123356fdfdf09c3075e9cae1.tar.zst
fix: Fix end icon in smart list input overlapping with text. Fixes #1379
Diffstat (limited to '')
-rw-r--r--apps/web/components/dashboard/lists/EditListModal.tsx14
-rw-r--r--apps/web/components/dashboard/search/SearchInput.tsx2
2 files changed, 9 insertions, 7 deletions
diff --git a/apps/web/components/dashboard/lists/EditListModal.tsx b/apps/web/components/dashboard/lists/EditListModal.tsx
index 68d32b0a..7a750c33 100644
--- a/apps/web/components/dashboard/lists/EditListModal.tsx
+++ b/apps/web/components/dashboard/lists/EditListModal.tsx
@@ -358,14 +358,16 @@ export function EditListModal({
value={field.value}
onChange={field.onChange}
placeholder={t("lists.search_query")}
+ endIcon={
+ parsedSearchQuery ? (
+ <QueryExplainerTooltip
+ className="stroke-foreground p-1"
+ parsedSearchQuery={parsedSearchQuery}
+ />
+ ) : undefined
+ }
/>
</FormControl>
- {parsedSearchQuery && (
- <QueryExplainerTooltip
- className="translate-1/2 absolute right-1.5 top-2 stroke-foreground p-0.5"
- parsedSearchQuery={parsedSearchQuery}
- />
- )}
</div>
<FormDescription>
<Link
diff --git a/apps/web/components/dashboard/search/SearchInput.tsx b/apps/web/components/dashboard/search/SearchInput.tsx
index c58542bf..e60c460c 100644
--- a/apps/web/components/dashboard/search/SearchInput.tsx
+++ b/apps/web/components/dashboard/search/SearchInput.tsx
@@ -100,7 +100,7 @@ const SearchInput = React.forwardRef<
</Button>
)}
<Input
- startIcon={SearchIcon}
+ startIcon={<SearchIcon size={18} className="text-muted-foreground" />}
ref={inputRef}
value={value}
onChange={onChange}