@orsetra/shared-ui 1.7.2 → 1.7.3
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.
|
@@ -267,7 +267,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
267
267
|
|
|
268
268
|
return (
|
|
269
269
|
<div
|
|
270
|
-
className="h-screen sticky top-0 flex flex-col bg-gray-50
|
|
270
|
+
className="h-screen sticky top-0 flex flex-col bg-gray-50 min-w-[var(--sidebar-width-icon)] transition-[width] duration-200 overflow-visible"
|
|
271
271
|
style={{ width: isCollapsed ? "var(--sidebar-width-icon)" : "var(--sidebar-width)" }}
|
|
272
272
|
>
|
|
273
273
|
{/* Header */}
|
|
@@ -300,12 +300,12 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
300
300
|
{/* Section label — hidden when collapsed */}
|
|
301
301
|
{!isCollapsed && (
|
|
302
302
|
injectedItems === undefined ? (
|
|
303
|
-
<div className="h-10 flex items-center px-4 flex-shrink-0 gap-2">
|
|
303
|
+
<div className="h-10 flex items-center px-4 flex-shrink-0 gap-2 border-r border-ui-border">
|
|
304
304
|
<div className="h-4 w-4 bg-gray-200 animate-pulse rounded flex-shrink-0" />
|
|
305
305
|
<div className="h-2.5 w-20 bg-gray-200 animate-pulse rounded" />
|
|
306
306
|
</div>
|
|
307
307
|
) : (injectedTitle || (currentMenu && sectionLabels[currentMenu])) ? (
|
|
308
|
-
<div className="h-10 flex items-center px-4 flex-shrink-0 gap-2">
|
|
308
|
+
<div className="h-10 flex items-center px-4 flex-shrink-0 gap-2 border-r border-ui-border">
|
|
309
309
|
{isInjecting ? (
|
|
310
310
|
<button
|
|
311
311
|
type="button"
|
|
@@ -334,7 +334,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
334
334
|
|
|
335
335
|
{/* Nav */}
|
|
336
336
|
<nav className={cn(
|
|
337
|
-
"flex-1 overflow-y-auto",
|
|
337
|
+
"flex-1 overflow-y-auto border-r border-ui-border",
|
|
338
338
|
isCollapsed ? "px-1 py-3 space-y-0.5" : "px-3 py-4 space-y-1"
|
|
339
339
|
)}>
|
|
340
340
|
{/* Secondary nav items — skeleton while injected but loading */}
|
|
@@ -436,7 +436,7 @@ function Sidebar({ currentMenu, onMainMenuToggle, sidebarMenus = {}, main_base_u
|
|
|
436
436
|
</nav>
|
|
437
437
|
|
|
438
438
|
{/* Collapse / expand toggle */}
|
|
439
|
-
<div className={cn("flex-shrink-0 p-2", isCollapsed ? "flex justify-center" : "flex justify-end")}>
|
|
439
|
+
<div className={cn("flex-shrink-0 p-2 border-r border-ui-border", isCollapsed ? "flex justify-center" : "flex justify-end")}>
|
|
440
440
|
<button
|
|
441
441
|
type="button"
|
|
442
442
|
onClick={toggleSidebar}
|