forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
β‘οΈ perf: refactor Chat Layout to improve performance (lobehub#2339)
* β»οΈ refactor: Refactor Chat Layout * β test: Fix test * π fix: Fix ci * π§ chore: Rename workspace * π§ chore: Revert sync style * π fix: Fix review problem * π style: Fix style * π§ chore: Revert useInterceptingRoutes * π fix: Fix review problem * π style: Remove animation * π fix: Fix panel * π fix: Fix mobile style * π fix: Fix Workspace Modal * π fix: FIx ios keyboard scroll back * π fix: Fix lint * π§ chore: prepare to rebase * π fix: Fix PWA * π fix: Fix safearea
- Loading branch information
1 parent
a0e7872
commit abf4e86
Showing
127 changed files
with
767 additions
and
701 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import ChatHydration from '@/components/StoreHydration/ChatHydration'; | ||
import Conversation from '@/features/Conversation'; | ||
import { isMobileDevice } from '@/utils/responsive'; | ||
|
||
import DesktopChatInput from './features/ChatInput/Desktop'; | ||
import MobileChatInput from './features/ChatInput/Mobile'; | ||
|
||
const ChatConversation = () => { | ||
const mobile = isMobileDevice(); | ||
const ChatInput = mobile ? MobileChatInput : DesktopChatInput; | ||
|
||
return ( | ||
<> | ||
<Conversation mobile={mobile} /> | ||
<ChatInput /> | ||
<ChatHydration /> | ||
</> | ||
); | ||
}; | ||
|
||
ChatConversation.displayName = 'ChatConversation'; | ||
|
||
export default ChatConversation; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.