mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 12:42:38 +00:00
layout fix, und debounce reduction to 10s
This commit is contained in:
@@ -1 +1 @@
|
||||
485
|
||||
486
|
||||
|
||||
@@ -137,7 +137,7 @@ namespace AutopilotMonitor.Functions.Functions.Config
|
||||
await response.WriteAsJsonAsync(new AgentConfigResponse
|
||||
{
|
||||
ConfigVersion = 18, // admin session override (mark-succeeded + agent cleanup signal via ingest response)
|
||||
UploadIntervalSeconds = 30,
|
||||
UploadIntervalSeconds = 10,
|
||||
SelfDestructOnComplete = tenantConfig.SelfDestructOnComplete ?? true,
|
||||
KeepLogFile = tenantConfig.KeepLogFile ?? false,
|
||||
EnableGeoLocation = tenantConfig.EnableGeoLocation ?? true,
|
||||
|
||||
@@ -369,7 +369,7 @@ export function GlobalSidebar({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<>
|
||||
{/* ===== Public pages: show branded navbar without section links ===== */}
|
||||
{!isAuthenticated && isPublicPage && <PublicSiteNavbar showSectionLinks={false} />}
|
||||
{!isAuthenticated && isPublicPage && <PublicSiteNavbar showSectionLinks={false} fullWidth />}
|
||||
|
||||
{/* ===== Mobile: overlay ===== */}
|
||||
{mobileDrawerOpen && (
|
||||
|
||||
@@ -4,7 +4,7 @@ import Link from "next/link";
|
||||
import { useAuth } from "../contexts/AuthContext";
|
||||
import { useTheme } from "../contexts/ThemeContext";
|
||||
|
||||
export function PublicSiteNavbar({ showSectionLinks }: { showSectionLinks: boolean }) {
|
||||
export function PublicSiteNavbar({ showSectionLinks, fullWidth = false }: { showSectionLinks: boolean; fullWidth?: boolean }) {
|
||||
const { login, isAuthenticated } = useAuth();
|
||||
const { theme, toggleTheme } = useTheme();
|
||||
const isDark = theme === "dark";
|
||||
@@ -20,7 +20,7 @@ export function PublicSiteNavbar({ showSectionLinks }: { showSectionLinks: boole
|
||||
isDark ? "bg-slate-900/85 border-slate-700/70" : "bg-white/80 border-gray-200/60"
|
||||
}`}
|
||||
>
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 flex items-center justify-between h-14">
|
||||
<div className={`${fullWidth ? "" : "max-w-7xl mx-auto"} px-4 sm:px-6 flex items-center justify-between h-14`}>
|
||||
<Link href="/" className="flex items-center space-x-2.5 shrink-0">
|
||||
<div className="w-8 h-8 bg-gradient-to-br from-blue-600 to-indigo-600 rounded-lg flex items-center justify-center">
|
||||
<svg className="w-5 h-5 text-white" viewBox="0 0 24 24" fill="none">
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user