spine-framework-portal 0.2.27 → 0.2.28
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/components/PortalHeader.tsx +1 -1
- package/index.tsx +6 -2
- package/package.json +1 -1
|
@@ -47,7 +47,7 @@ export function PortalHeader() {
|
|
|
47
47
|
|
|
48
48
|
return (
|
|
49
49
|
<>
|
|
50
|
-
<header className="
|
|
50
|
+
<header className="shrink-0 z-50 bg-background border-b border-border shadow-sm">
|
|
51
51
|
<div className="flex items-center h-14 px-6 gap-6">
|
|
52
52
|
<NavLink to={appPath('/')} className="flex items-center gap-2 shrink-0 text-foreground hover:text-primary transition-colors">
|
|
53
53
|
<LayoutGrid size={18} className="text-primary" />
|
package/index.tsx
CHANGED
|
@@ -15,13 +15,17 @@ const KnowledgePage = lazy(() => import('./pages/KnowledgePage').then(m => ({ de
|
|
|
15
15
|
const MarketplacePage = lazy(() => import('./pages/MarketplacePage').then(m => ({ default: m.MarketplacePage })))
|
|
16
16
|
const DeveloperSettingsPage = lazy(() => import('./pages/DeveloperSettingsPage').then(m => ({ default: m.DeveloperSettingsPage })))
|
|
17
17
|
|
|
18
|
+
// Pages that need full viewport height (no footer, no scroll on the outer page)
|
|
19
|
+
const FULL_HEIGHT_PATHS = ['/tickets']
|
|
20
|
+
|
|
18
21
|
function PortalLayout() {
|
|
19
22
|
const location = useLocation()
|
|
23
|
+
const isFullHeight = FULL_HEIGHT_PATHS.some(p => location.pathname.includes(p))
|
|
20
24
|
|
|
21
25
|
return (
|
|
22
26
|
<div className="h-full flex flex-col bg-background overflow-hidden">
|
|
23
27
|
<PortalHeader />
|
|
24
|
-
<main className="flex-1 flex flex-col min-h-0">
|
|
28
|
+
<main className="flex-1 flex flex-col min-h-0 overflow-hidden">
|
|
25
29
|
<Suspense fallback={<div className="flex-1 flex items-center justify-center"><LoadingSpinner /></div>}>
|
|
26
30
|
<div className="flex-1 flex flex-col min-h-0">
|
|
27
31
|
<Routes>
|
|
@@ -40,7 +44,7 @@ function PortalLayout() {
|
|
|
40
44
|
</div>
|
|
41
45
|
</Suspense>
|
|
42
46
|
</main>
|
|
43
|
-
<PortalFooter />
|
|
47
|
+
{!isFullHeight && <PortalFooter />}
|
|
44
48
|
</div>
|
|
45
49
|
)
|
|
46
50
|
}
|