mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-12 21:13:43 +08:00
fix: new chat don't jump chat in dontShowMask
This commit is contained in:
@@ -91,8 +91,7 @@ export function SideBar(props: { className?: string }) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`${styles.sidebar} ${props.className} ${
|
className={`${styles.sidebar} ${props.className} ${shouldNarrow && styles["narrow-sidebar"]
|
||||||
shouldNarrow && styles["narrow-sidebar"]
|
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div className={styles["sidebar-header"]}>
|
<div className={styles["sidebar-header"]}>
|
||||||
@@ -159,6 +158,7 @@ export function SideBar(props: { className?: string }) {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (config.dontShowMaskSplashScreen) {
|
if (config.dontShowMaskSplashScreen) {
|
||||||
chatStore.newSession();
|
chatStore.newSession();
|
||||||
|
navigate(Path.Chat);
|
||||||
} else {
|
} else {
|
||||||
navigate(Path.NewChat);
|
navigate(Path.NewChat);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user