mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 22:13:47 +08:00
loi he thong
This commit is contained in:
@@ -515,6 +515,7 @@ export function ChatActions(props: {
|
||||
|
||||
function nextTheme() {
|
||||
//, Theme.Dark
|
||||
|
||||
const themes = [Theme.Auto, Theme.Light];
|
||||
const themeIndex = themes.indexOf(theme);
|
||||
const nextIndex = (themeIndex + 1) % themes.length;
|
||||
|
||||
@@ -90,11 +90,13 @@ export function useSwitchTheme() {
|
||||
document.body.classList.remove("light");
|
||||
document.body.classList.remove("dark");
|
||||
|
||||
if (config.theme === "dark") {
|
||||
document.body.classList.add("dark");
|
||||
} else if (config.theme === "light") {
|
||||
document.body.classList.add("light");
|
||||
}
|
||||
// if (config.theme === "dark") {
|
||||
// document.body.classList.add("dark");
|
||||
// } else if (config.theme === "light") {
|
||||
// document.body.classList.add("light");
|
||||
// }
|
||||
|
||||
document.body.classList.add("light");
|
||||
|
||||
const metaDescriptionDark = document.querySelector(
|
||||
'meta[name="theme-color"][media*="dark"]',
|
||||
|
||||
@@ -310,6 +310,7 @@ export function SideBar(props: { className?: string }) {
|
||||
}),
|
||||
]}
|
||||
onClose={() => setshowDiscoverySelector(false)}
|
||||
// dong bo du lieu voi cloud
|
||||
onSelection={async (s) => {
|
||||
console.log(s[0]);
|
||||
if (s[0] == "/sync") {
|
||||
|
||||
Reference in New Issue
Block a user