fix(web): add root redirect to dashboard and fix header z-index layering
Add permanent redirect from / to /_app/ so the gateway root serves the dashboard. Fix z-index stacking in Layout so the header dropdown menus render above main content. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ac63a4d16a
commit
b890b7da74
@ -689,6 +689,10 @@ pub async fn run_gateway(host: &str, port: u16, config: Config) -> Result<()> {
|
||||
.route("/ws/chat", get(ws::handle_ws_chat))
|
||||
// ── Static assets (web dashboard) ──
|
||||
.route("/_app/{*path}", get(static_files::handle_static))
|
||||
// ── Root redirect to dashboard ──
|
||||
.route("/", get(|| async {
|
||||
axum::response::Redirect::permanent("/_app/")
|
||||
}))
|
||||
// ── Config PUT with larger body limit ──
|
||||
.merge(config_put_router)
|
||||
.with_state(state)
|
||||
|
||||
@ -47,9 +47,11 @@ export default function Layout() {
|
||||
sidebarCollapsed ? 'md:ml-[6.25rem]' : 'md:ml-[17.5rem]',
|
||||
].join(' ')}
|
||||
>
|
||||
<Header onToggleSidebar={() => setSidebarOpen((open) => !open)} />
|
||||
<div className="relative z-50">
|
||||
<Header onToggleSidebar={() => setSidebarOpen((open) => !open)} />
|
||||
</div>
|
||||
|
||||
<main className="flex-1 overflow-y-auto px-4 pb-8 pt-5 md:px-8 md:pt-8">
|
||||
<main className="relative z-10 flex-1 overflow-y-auto px-4 pb-8 pt-5 md:px-8 md:pt-8">
|
||||
<Outlet />
|
||||
</main>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user