fix(theme): default light

This commit is contained in:
2026-03-10 10:51:32 +08:00
parent fe46a422b4
commit 3c7333b24e
2 changed files with 5 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import "mantine-datatable/styles.css"
import Script from "next/script" import Script from "next/script"
import { InfoCheck } from "@/app/store/InfoCheck" import { InfoCheck } from "@/app/store/InfoCheck"
import { OptStore } from "@/components/label/OptStore"
import { import {
ColorSchemeScript, ColorSchemeScript,
MantineProvider, MantineProvider,
@@ -18,7 +19,6 @@ import { Notifications } from "@mantine/notifications"
import { Suspense } from "react" import { Suspense } from "react"
import "./globals.css" import "./globals.css"
import { theme } from "./theme" import { theme } from "./theme"
import { OptStore } from "@/components/label/OptStore"
const GLOBAL_NOTICE_Z_INDEX = 4000 const GLOBAL_NOTICE_Z_INDEX = 4000
@@ -46,7 +46,7 @@ export default function RootLayout({
return ( return (
<html lang="en" {...mantineHtmlProps}> <html lang="en" {...mantineHtmlProps}>
<head> <head>
<ColorSchemeScript defaultColorScheme="auto" /> <ColorSchemeScript defaultColorScheme="light" />
<Script <Script
src="https://lf-scm-cn.feishucdn.com/lark/op/h5-js-sdk-1.5.44.js" src="https://lf-scm-cn.feishucdn.com/lark/op/h5-js-sdk-1.5.44.js"
strategy="afterInteractive" strategy="afterInteractive"
@@ -56,7 +56,7 @@ export default function RootLayout({
/> />
</head> </head>
<body> <body>
<MantineProvider defaultColorScheme="auto" theme={theme}> <MantineProvider defaultColorScheme="light" theme={theme}>
<Notifications zIndex={GLOBAL_NOTICE_Z_INDEX} withinPortal /> <Notifications zIndex={GLOBAL_NOTICE_Z_INDEX} withinPortal />
<InfoCheck /> <InfoCheck />
<OptStore /> <OptStore />

View File

@@ -176,6 +176,7 @@ export default function AppLayout({
</Flex> </Flex>
<Flex justify="center" align="center" w={"max-content"}> <Flex justify="center" align="center" w={"max-content"}>
<UnstyledButton <UnstyledButton
display="none"
onClick={() => onClick={() =>
setColorScheme( setColorScheme(
computedColorScheme === "light" ? "dark" : "light" computedColorScheme === "light" ? "dark" : "light"
@@ -197,7 +198,7 @@ export default function AppLayout({
stroke={1.5} stroke={1.5}
/> />
</UnstyledButton> </UnstyledButton>
<Divider orientation="vertical" mx={"0.5rem"} /> <Divider orientation="vertical" mx={"0.5rem"} display="none" />
<Menu shadow="md" width={200}> <Menu shadow="md" width={200}>
<Menu.Target> <Menu.Target>
<UnstyledButton> <UnstyledButton>