@umituz/web-dashboard 7.4.0 → 7.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-dashboard",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.1",
|
|
4
4
|
"description": "Installable app skeleton for the fleet — layouts, analytics (dependency-free SVG charts), calendar, onboarding flow permissions/module registry; udb-* stylesheet on design-system tokens",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -165,7 +165,7 @@ export const DashboardLayout = ({
|
|
|
165
165
|
...config.sidebarGroups.map((group) => ({
|
|
166
166
|
heading: group.title,
|
|
167
167
|
items: group.items.map((item) => ({
|
|
168
|
-
id: `nav-${item.path}`,
|
|
168
|
+
id: `nav-${item.path.replace(/[^a-zA-Z0-9_-]/g, '_')}`,
|
|
169
169
|
label: item.label,
|
|
170
170
|
icon: <item.icon size={16} aria-hidden="true" />,
|
|
171
171
|
hint: item.path,
|
|
@@ -263,9 +263,11 @@ export const DashboardLayout = ({
|
|
|
263
263
|
</div>
|
|
264
264
|
|
|
265
265
|
) : (
|
|
266
|
-
<
|
|
267
|
-
<
|
|
268
|
-
|
|
266
|
+
<div className="udb-layout__page">
|
|
267
|
+
<Suspense fallback={contentFallback ?? null}>
|
|
268
|
+
<Outlet />
|
|
269
|
+
</Suspense>
|
|
270
|
+
</div>
|
|
269
271
|
)}
|
|
270
272
|
</main>
|
|
271
273
|
|
package/src/styles/chrome.css
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
--udb-sidebar-border: var(--color-border);
|
|
27
27
|
--udb-sidebar-accent: var(--color-muted);
|
|
28
28
|
--udb-sidebar-accent-text: var(--color-foreground);
|
|
29
|
+
--udb-content-max-width: none;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
.udb-root,
|
|
@@ -123,6 +124,11 @@
|
|
|
123
124
|
overflow-y: auto;
|
|
124
125
|
padding: var(--udb-space-4);
|
|
125
126
|
}
|
|
127
|
+
.udb-layout__page {
|
|
128
|
+
width: 100%;
|
|
129
|
+
margin: 0 auto;
|
|
130
|
+
max-width: var(--udb-content-max-width, none);
|
|
131
|
+
}
|
|
126
132
|
@media (min-width: 768px) {
|
|
127
133
|
.udb-layout__sidebar {
|
|
128
134
|
display: flex;
|