File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ import { onMount } from 'solid-js'
1
2
import { scrollController , showConversationSidebar , showSettingsSidebar } from '@/stores/ui'
2
3
import { useLargeScreen } from '@/hooks'
3
4
import ConversationHeaderInfo from './ConversationHeaderInfo'
4
5
import ConversationMessageClearButton from './ConversationMessageClearButton'
5
6
6
7
export default ( ) => {
7
- useLargeScreen ( ( ) => {
8
- // bug: when click the setting btn, toggle moible or PC mode, the sidebar will not close
9
- showConversationSidebar . set ( false )
10
- showSettingsSidebar . set ( false )
8
+ onMount ( ( ) => {
9
+ useLargeScreen ( ( ) => {
10
+ // bug: when click the setting btn, toggle moible or PC mode, the sidebar will not close
11
+ showConversationSidebar . set ( false )
12
+ showSettingsSidebar . set ( false )
13
+ } )
11
14
} )
12
15
return (
13
16
< header onDblClick = { scrollController ( ) . scrollToTop } class = "shrink-0 absolute top-0 left-0 right-0 fi justify-between bg-base-100 border-b border-base h-14 px-4" >
You can’t perform that action at this time.
0 commit comments