Skip to content

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

Pad search dialog status messages so they wrap on mobile

fzaninotto84ab7b140650
diff --git a/src/components/atomic-crm/search/GlobalSearchButton.tsx b/src/components/atomic-crm/search/GlobalSearchButton.tsx
index 55e6fdf5..b037bc96 100644
--- a/src/components/atomic-crm/search/GlobalSearchButton.tsx
+++ b/src/components/atomic-crm/search/GlobalSearchButton.tsx
@@ -292,23 +292,25 @@ export const GlobalSearchDialog = ({
}
>
{isTooShort ? (
- <div className="py-6 text-center text-sm text-muted-foreground">
+ <div className="px-4 py-6 text-center text-sm text-muted-foreground">
{translate("crm.search.hint", { min: MIN_SEARCH_LENGTH })}
</div>
) : error ? (
<div
role="alert"
- className="py-6 text-center text-sm text-destructive"
+ className="px-4 py-6 text-center text-sm text-destructive"
>
{translate("crm.search.error")}
</div>
) : isPending ? (
- <div className="py-6 text-center text-sm text-muted-foreground">
+ <div className="px-4 py-6 text-center text-sm text-muted-foreground">
{translate("crm.common.loading")}
</div>
) : (
<>
- <CommandEmpty>{translate("crm.search.empty")}</CommandEmpty>
+ <CommandEmpty className="px-4 py-6 text-center text-sm">
+ {translate("crm.search.empty")}
+ </CommandEmpty>
{SEARCH_RESOURCES.map(({ name, icon: Icon, labelKey }) => {
const groupResults = linkedResults.filter(
({ result }) => result.resource === name,