Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Small settings UX improvements
Damian Legawieca828fd111f2c
diff --git a/packages/dashboard-core/src/components/settings-sidebar.tsx b/packages/dashboard-core/src/components/settings-sidebar.tsxindex 08321cd353..76b33314db 100644--- a/packages/dashboard-core/src/components/settings-sidebar.tsx+++ b/packages/dashboard-core/src/components/settings-sidebar.tsx@@ -79,10 +79,8 @@ export function SettingsSidebar({// the sheet rather than an extension of the nav rail beside it, so it// reads as part of the page it is navigating rather than as a second// band of chrome.- 'z-30 hidden h-full shrink-0 overflow-hidden bg-muted text-sidebar-foreground transition-[width,border-color] duration-200 ease-out lg:block',- open- ? 'lg:w-(--spacing-sidebar-width) border-e border-border-subtle'- : 'lg:w-0 border-e-0 border-transparent',+ 'z-30 hidden vh-full shrink-0 overflow-hidden bg-muted m-1.5 rounded-lg text-sidebar-foreground transition-[width,border-color] duration-200 ease-out lg:block',+ open ? 'lg:w-(--spacing-sidebar-width)' : 'lg:w-0 border-e-0 border-transparent',)}><divdiff --git a/packages/dashboard-core/src/components/store-switcher.tsx b/packages/dashboard-core/src/components/store-switcher.tsxindex 68ce20a6f8..a6f851be68 100644--- a/packages/dashboard-core/src/components/store-switcher.tsx+++ b/packages/dashboard-core/src/components/store-switcher.tsx@@ -62,7 +62,7 @@ export function StoreSwitcher() {return (<SidebarMenu><SidebarMenuItem className="h-rail-header-height flex items-center">- <div className="flex w-full items-center gap-2 p-1.5">{header}</div>+ <div className="flex w-full items-center gap-2">{header}</div></SidebarMenuItem></SidebarMenu>)diff --git a/packages/dashboard-ui/src/ui/sidebar.tsx b/packages/dashboard-ui/src/ui/sidebar.tsxindex 39f63d9272..6e1c29c5bb 100644--- a/packages/dashboard-ui/src/ui/sidebar.tsx+++ b/packages/dashboard-ui/src/ui/sidebar.tsx@@ -276,7 +276,7 @@ function Sidebar({'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex',// Adjust the padding for floating and inset variants.variant === 'floating' || variant === 'inset'- ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'+ ? 'py-2 px-1 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]': 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)',className,)}@@ -402,7 +402,7 @@ function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>) {data-slot="sidebar-footer"data-sidebar="footer"className={cn(- 'flex flex-col gap-0 p-2 mt-auto border-t border-border-subtle group-data-[collapsible=icon]:px-0 group-data-[collapsible=icon]:items-center',+ 'flex flex-col gap-0 p-1.5 mt-auto border-t border-border-subtle group-data-[collapsible=icon]:px-0 group-data-[collapsible=icon]:items-center',className,)}{...props}diff --git a/packages/seller-dashboard/src/components/seller-switcher.tsx b/packages/seller-dashboard/src/components/seller-switcher.tsxindex 76ae67e4d8..45c9e8bd58 100644--- a/packages/seller-dashboard/src/components/seller-switcher.tsx+++ b/packages/seller-dashboard/src/components/seller-switcher.tsx@@ -80,7 +80,7 @@ export function SellerSwitcher() {return (<SidebarMenu><SidebarMenuItem className="flex h-rail-header-height items-center">- <div className="flex w-full items-center gap-2 p-1.5">{header}</div>+ <div className="flex w-full items-center gap-2 ">{header}</div></SidebarMenuItem></SidebarMenu>)