@cntyclub/ui-react 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/sidebar.tsx +3 -4
package/dist/index.js
CHANGED
|
@@ -8069,11 +8069,10 @@ function SidebarMenuBadge({
|
|
|
8069
8069
|
"div",
|
|
8070
8070
|
{
|
|
8071
8071
|
className: cn(
|
|
8072
|
-
|
|
8072
|
+
// Vertically centered against the menu button (size-agnostic) rather
|
|
8073
|
+
// than pinned to the top, so the count reads level with the label.
|
|
8074
|
+
"pointer-events-none absolute right-1 top-1/2 flex h-5 min-w-5 -translate-y-1/2 select-none items-center justify-center rounded-lg px-1 font-medium text-sidebar-foreground text-xs tabular-nums",
|
|
8073
8075
|
"peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground peer-data-[status=active]/menu-button:text-sidebar-accent-foreground",
|
|
8074
|
-
"peer-data-[size=sm]/menu-button:top-1",
|
|
8075
|
-
"peer-data-[size=default]/menu-button:top-1.5",
|
|
8076
|
-
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
8077
8076
|
"group-data-[collapsible=icon]:hidden",
|
|
8078
8077
|
className
|
|
8079
8078
|
),
|