mobile: fix sidebar height on iOS (#318)

* mobile: fix sidebar height on iOS

* fix: tts should not resume playing when closing book
This commit is contained in:
Huang Xin
2025-02-08 13:32:15 +01:00
committed by GitHub
parent 151509b84c
commit 1da0817145
2 changed files with 3 additions and 3 deletions
@@ -118,7 +118,8 @@ const SideBar: React.FC<{
<>
<div
className={clsx(
'sidebar-container bg-base-200 z-20 flex h-full min-w-60 select-none flex-col',
'sidebar-container bg-base-200 z-20 flex min-w-60 select-none flex-col',
appService?.isIOSApp ? 'h-[100vh]' : 'h-full',
appService?.hasSafeAreaInset && 'pt-[env(safe-area-inset-top)]',
appService?.hasRoundedWindow && 'rounded-window-top-left rounded-window-bottom-left',
!isSideBarPinned && 'shadow-2xl',
@@ -242,7 +242,6 @@ export class TTSController extends EventTarget {
}
async kill() {
this.state = 'stopped';
await this.ttsClient.stop();
await this.stop();
}
}