Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Keep the search input text clear of the dialog's close button

François Zaninotto321d2f918364
diff --git a/src/components/atomic-crm/search/GlobalSearchDialog.tsx b/src/components/atomic-crm/search/GlobalSearchDialog.tsx
index 339f58fb..c95d97a5 100644
--- a/src/components/atomic-crm/search/GlobalSearchDialog.tsx
+++ b/src/components/atomic-crm/search/GlobalSearchDialog.tsx
@@ -102,6 +102,9 @@ export const GlobalSearchDialog = ({
placeholder={translate("crm.search.placeholder")}
value={query}
onValueChange={setQuery}
+ // keep the text clear of the dialog's close button, drawn over the
+ // input's right end
+ className="pr-8"
/>
<CommandList className={isMobile ? "max-h-none flex-1" : "max-h-[60vh]"}>
{isTooShort ? (