gov-layout 1.2.0 → 1.2.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 CHANGED
@@ -857,7 +857,7 @@ function StaffSidebar({
857
857
  collapsed
858
858
  }
859
859
  ),
860
- /* @__PURE__ */ jsxRuntime.jsx(
860
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 1, overflowY: "auto", minHeight: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(
861
861
  SidebarMenu,
862
862
  {
863
863
  menuItems,
@@ -865,26 +865,34 @@ function StaffSidebar({
865
865
  currentPath,
866
866
  collapsed
867
867
  }
868
- ),
869
- resolvedBottomMenu && resolvedBottomMenu.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
870
- SidebarMenu,
871
- {
872
- menuItems: resolvedBottomMenu,
873
- onItemClick: onNavigate,
874
- currentPath,
875
- collapsed
876
- }
877
- ),
878
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { flex: 1 } }),
879
- /* @__PURE__ */ jsxRuntime.jsx(
880
- SidebarUserProfile,
881
- {
882
- user,
883
- roleLabel,
884
- onLogout,
885
- collapsed
886
- }
887
- )
868
+ ) }),
869
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { flexShrink: 0 }, children: [
870
+ resolvedBottomMenu && resolvedBottomMenu.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
871
+ /* @__PURE__ */ jsxRuntime.jsx("hr", { style: {
872
+ border: "none",
873
+ borderTop: "1px solid var(--color-border-colors-neutral, #c8cedd)",
874
+ margin: "4px 12px"
875
+ } }),
876
+ /* @__PURE__ */ jsxRuntime.jsx(
877
+ SidebarMenu,
878
+ {
879
+ menuItems: resolvedBottomMenu,
880
+ onItemClick: onNavigate,
881
+ currentPath,
882
+ collapsed
883
+ }
884
+ )
885
+ ] }),
886
+ /* @__PURE__ */ jsxRuntime.jsx(
887
+ SidebarUserProfile,
888
+ {
889
+ user,
890
+ roleLabel,
891
+ onLogout,
892
+ collapsed
893
+ }
894
+ )
895
+ ] })
888
896
  ]
889
897
  }
890
898
  ),