Skip to content

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

Restore select padding, menu alignment and CLI class markers

erwanMarmelab13abadc5408b
diff --git a/src/components/admin/columns-button.tsx b/src/components/admin/columns-button.tsx
index cef50d59..32f09052 100644
--- a/src/components/admin/columns-button.tsx
+++ b/src/components/admin/columns-button.tsx
@@ -163,7 +163,7 @@ export const ColumnsSelector = ({ children }: ColumnsSelectorProps) => {
const observer = new MutationObserver(resolveContainer);
- observer.observe(document.body, { childList: true, subtree: true });
+ observer.observe(document.body, { childList: true });
return () => {
observer.disconnect();
diff --git a/src/components/atomic-crm/contacts/TagsListEdit.tsx b/src/components/atomic-crm/contacts/TagsListEdit.tsx
index 5813779c..3dc9bc88 100644
--- a/src/components/atomic-crm/contacts/TagsListEdit.tsx
+++ b/src/components/atomic-crm/contacts/TagsListEdit.tsx
@@ -120,7 +120,7 @@ export const TagsListEdit = () => {
<Plus className="w-4 h-4 md:w-3 md:h-3 mr-1" />
{translate("resources.tags.action.add")}
</DropdownMenuTrigger>
- <DropdownMenuContent>
+ <DropdownMenuContent align="center">
{unselectedTags?.map((tag) => (
<DropdownMenuItem
key={tag.id}
diff --git a/src/components/atomic-crm/layout/MobileNavigation.tsx b/src/components/atomic-crm/layout/MobileNavigation.tsx
index 744857a2..14208b3e 100644
--- a/src/components/atomic-crm/layout/MobileNavigation.tsx
+++ b/src/components/atomic-crm/layout/MobileNavigation.tsx
@@ -142,7 +142,7 @@ const CreateButton = () => {
>
<Plus className="size-10" />
</DropdownMenuTrigger>
- <DropdownMenuContent>
+ <DropdownMenuContent align="center">
<DropdownMenuItem
className="h-12 px-4 text-base"
onClick={() => {
diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx
index ae8ca02b..b82e8d27 100644
--- a/src/components/ui/card.tsx
+++ b/src/components/ui/card.tsx
@@ -37,7 +37,7 @@ function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
<div
data-slot="card-title"
className={cn(
- "cn-font-heading text-base leading-normal font-medium group-data-[size=sm]/card:text-sm",
+ "text-base leading-normal font-medium group-data-[size=sm]/card:text-sm",
className
)}
{...props}
diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx
index 05efbbb0..c2f5ecc4 100644
--- a/src/components/ui/dialog.tsx
+++ b/src/components/ui/dialog.tsx
@@ -120,7 +120,7 @@ function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {
return (
<DialogPrimitive.Title
data-slot="dialog-title"
- className={cn("cn-font-heading leading-none font-medium", className)}
+ className={cn("leading-none font-medium", className)}
{...props}
/>
)
diff --git a/src/components/ui/drawer.tsx b/src/components/ui/drawer.tsx
index 834a088a..19e0ceef 100644
--- a/src/components/ui/drawer.tsx
+++ b/src/components/ui/drawer.tsx
@@ -190,7 +190,7 @@ function DrawerTitle({ className, ...props }: DrawerPrimitive.Title.Props) {
return (
<DrawerPrimitive.Title
data-slot="drawer-title"
- className={cn("cn-font-heading font-medium text-foreground", className)}
+ className={cn("font-medium text-foreground", className)}
{...props}
/>
)
diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx
index ee1c7b94..4c19b13b 100644
--- a/src/components/ui/dropdown-menu.tsx
+++ b/src/components/ui/dropdown-menu.tsx
@@ -42,7 +42,7 @@ function DropdownMenuContent({
<MenuPrimitive.Popup
data-slot="dropdown-menu-content"
className={cn(
- "cn-menu-target cn-menu-translucent z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",
+ "z-50 max-h-(--available-height) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",
className
)}
{...props}
@@ -139,7 +139,7 @@ function DropdownMenuSubContent({
<DropdownMenuContent
data-slot="dropdown-menu-sub-content"
className={cn(
- "cn-menu-target cn-menu-translucent w-auto min-w-[96px] rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ "w-auto min-w-[96px] rounded-md bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
className
)}
align={align}
diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx
index 81b11c4c..fdcf7da4 100644
--- a/src/components/ui/select.tsx
+++ b/src/components/ui/select.tsx
@@ -82,13 +82,15 @@ function SelectContent({
data-slot="select-content"
data-align-trigger={alignItemWithTrigger}
className={cn(
- "cn-menu-target cn-menu-translucent relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ "relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
className
)}
{...props}
>
<SelectScrollUpButton />
- <SelectPrimitive.List>{children}</SelectPrimitive.List>
+ <SelectPrimitive.List className="p-1">
+ {children}
+ </SelectPrimitive.List>
<SelectScrollDownButton />
</SelectPrimitive.Popup>
</SelectPrimitive.Positioner>
diff --git a/src/components/ui/sheet.tsx b/src/components/ui/sheet.tsx
index a9cca222..72f7abc2 100644
--- a/src/components/ui/sheet.tsx
+++ b/src/components/ui/sheet.tsx
@@ -103,7 +103,7 @@ function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) {
return (
<SheetPrimitive.Title
data-slot="sheet-title"
- className={cn("cn-font-heading font-medium text-foreground", className)}
+ className={cn("font-medium text-foreground", className)}
{...props}
/>
)