fix(theme): default light
This commit is contained in:
@@ -7,6 +7,7 @@ import "mantine-datatable/styles.css"
|
||||
import Script from "next/script"
|
||||
|
||||
import { InfoCheck } from "@/app/store/InfoCheck"
|
||||
import { OptStore } from "@/components/label/OptStore"
|
||||
import {
|
||||
ColorSchemeScript,
|
||||
MantineProvider,
|
||||
@@ -18,7 +19,6 @@ import { Notifications } from "@mantine/notifications"
|
||||
import { Suspense } from "react"
|
||||
import "./globals.css"
|
||||
import { theme } from "./theme"
|
||||
import { OptStore } from "@/components/label/OptStore"
|
||||
|
||||
const GLOBAL_NOTICE_Z_INDEX = 4000
|
||||
|
||||
@@ -46,7 +46,7 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang="en" {...mantineHtmlProps}>
|
||||
<head>
|
||||
<ColorSchemeScript defaultColorScheme="auto" />
|
||||
<ColorSchemeScript defaultColorScheme="light" />
|
||||
<Script
|
||||
src="https://lf-scm-cn.feishucdn.com/lark/op/h5-js-sdk-1.5.44.js"
|
||||
strategy="afterInteractive"
|
||||
@@ -56,7 +56,7 @@ export default function RootLayout({
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<MantineProvider defaultColorScheme="auto" theme={theme}>
|
||||
<MantineProvider defaultColorScheme="light" theme={theme}>
|
||||
<Notifications zIndex={GLOBAL_NOTICE_Z_INDEX} withinPortal />
|
||||
<InfoCheck />
|
||||
<OptStore />
|
||||
|
||||
@@ -176,6 +176,7 @@ export default function AppLayout({
|
||||
</Flex>
|
||||
<Flex justify="center" align="center" w={"max-content"}>
|
||||
<UnstyledButton
|
||||
display="none"
|
||||
onClick={() =>
|
||||
setColorScheme(
|
||||
computedColorScheme === "light" ? "dark" : "light"
|
||||
@@ -197,7 +198,7 @@ export default function AppLayout({
|
||||
stroke={1.5}
|
||||
/>
|
||||
</UnstyledButton>
|
||||
<Divider orientation="vertical" mx={"0.5rem"} />
|
||||
<Divider orientation="vertical" mx={"0.5rem"} display="none" />
|
||||
<Menu shadow="md" width={200}>
|
||||
<Menu.Target>
|
||||
<UnstyledButton>
|
||||
|
||||
Reference in New Issue
Block a user