fix(theme): default light
This commit is contained in:
@@ -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 />
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user