fixup: wont show fullscreen icon on mobile

main
Yidadaa 2 years ago
parent 601e72b56c
commit 3c1e81897a

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

@ -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`,

Loading…
Cancel
Save