@@ -6,7 +6,7 @@ import { addConversation, conversationMap, currentConversationId } from '@/store
6
6
import { loadingStateMap , streamsMap } from '@/stores/streams'
7
7
import { handlePrompt } from '@/logics/conversation'
8
8
import { globalAbortController } from '@/stores/settings'
9
- import { useI18n , useMobileScreen } from '@/hooks'
9
+ import { useI18n } from '@/hooks'
10
10
import Button from './ui/Button'
11
11
12
12
export default ( ) => {
@@ -21,7 +21,6 @@ export default () => {
21
21
const $globalAbortController = useStore ( globalAbortController )
22
22
23
23
const [ inputPrompt , setInputPrompt ] = createSignal ( '' )
24
- const [ footerClass , setFooterClass ] = createSignal ( '' )
25
24
const isEditing = ( ) => inputPrompt ( ) || $isSendBoxFocus ( )
26
25
const currentConversation = ( ) => {
27
26
return $conversationMap ( ) [ $currentConversationId ( ) ]
@@ -33,10 +32,6 @@ export default () => {
33
32
createShortcut ( [ 'Control' , 'Enter' ] , ( ) => {
34
33
$isSendBoxFocus ( ) && handleSend ( )
35
34
} )
36
-
37
- useMobileScreen ( ( ) => {
38
- setFooterClass ( 'sticky bottom-0 left-0 right-0 overflow-hidden' )
39
- } )
40
35
} )
41
36
42
37
const stateType = ( ) => {
@@ -172,7 +167,7 @@ export default () => {
172
167
}
173
168
174
169
return (
175
- < div class = { `relative shrink-0 border-t border-base pb-[env(safe-area-inset-bottom)] transition transition-colors duration-300 ${ stateRootClass ( ) } ${ footerClass ( ) } ` } >
170
+ < div class = { `sticky bottom-0 left-0 right-0 overflow-hidden shrink-0 border-t border-base pb-[env(safe-area-inset-bottom)] transition transition-colors duration-300 ${ stateRootClass ( ) } ` } >
176
171
< div class = { `relative transition transition-height duration-240 ${ stateHeightClass ( ) } ` } >
177
172
< Switch fallback = { < EmptyState /> } >
178
173
< Match when = { stateType ( ) === 'error' } >
0 commit comments