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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user