fixup: wont show fullscreen icon on mobile

This commit is contained in:
Yidadaa 2023-04-10 01:12:30 +08:00
parent 601e72b56c
commit 3c1e81897a
2 changed files with 17 additions and 11 deletions

View File

@ -593,6 +593,7 @@ export function Chat(props: {
}} }}
/> />
</div> </div>
{!isMobileScreen() && (
<div className={styles["window-action-button"]}> <div className={styles["window-action-button"]}>
<IconButton <IconButton
icon={chatStore.config.tightBorder ? <MinIcon /> : <MaxIcon />} icon={chatStore.config.tightBorder ? <MinIcon /> : <MaxIcon />}
@ -604,6 +605,7 @@ export function Chat(props: {
}} }}
/> />
</div> </div>
)}
</div> </div>
<PromptToast <PromptToast

View File

@ -114,6 +114,10 @@ function useDragSideBar() {
}; };
useEffect(() => { useEffect(() => {
if (isMobileScreen()) {
return;
}
document.documentElement.style.setProperty( document.documentElement.style.setProperty(
"--sidebar-width", "--sidebar-width",
`${limit(chatStore.config.sidebarWidth ?? 300)}px`, `${limit(chatStore.config.sidebarWidth ?? 300)}px`,