update:css样式拆分

This commit is contained in:
xiaozhu
2026-08-25 16:52:10 +08:00
parent 76aa2dcb27
commit 12111de788
27 changed files with 1404 additions and 3059 deletions
+5 -10
View File
@@ -18,8 +18,6 @@ import { useUiStore } from "../features/platform/state/uiStore";
import { bindAdminApi } from "../features/admin/state/adminStore";
import { bindSchedulesApi } from "../features/schedules/state/useSchedulesStore";
import "../styles/platform.css";
type ActivePage = "home" | "scripts" | "schedules" | "system";
function pageFromPath(pathname: string): ActivePage {
@@ -45,12 +43,9 @@ export default function PlatformLayout() {
const { currentWorkspace } = useAuth();
if (!currentWorkspace) {
return (
<div
className="app-shell"
style={{ display: "flex", alignItems: "center", justifyContent: "center" }}
>
<div style={{ textAlign: "center" }}>
<span style={{ fontSize: 18 }}></span>
<div className="flex min-h-screen items-center justify-center bg-[#eef2f6]">
<div className="text-center">
<span className="text-lg"></span>
</div>
</div>
);
@@ -116,7 +111,7 @@ function AuthenticatedLayout() {
}, [toast, dismissToast]);
return (
<div className="app-shell">
<div className="flex min-h-screen bg-[#eef2f6]">
<Sidebar
activePage={activePage}
collapsed={sidebarCollapsed}
@@ -128,7 +123,7 @@ function AuthenticatedLayout() {
isSystemAdmin={user?.is_system_admin ?? false}
/>
<main className="main-area">
<main className="flex h-screen min-w-0 flex-1 flex-col">
<Topbar
activePage={activePage}
apiOnline={apiOnline}