@pubuduth-aplicy/chat-ui 2.1.16 → 2.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/Chat.tsx +5 -6
- package/src/index.tsx +2 -0
package/package.json
CHANGED
package/src/components/Chat.tsx
CHANGED
|
@@ -3,26 +3,25 @@ import MessageContainer from './messages/MessageContainer';
|
|
|
3
3
|
import { Sidebar } from './sidebar/Sidebar'
|
|
4
4
|
// import MessageContainer from './components/messages/MessageContainer'
|
|
5
5
|
// import useConversation from '../../zustand/useConversation';
|
|
6
|
-
import '../style/tailwind.css'
|
|
7
6
|
|
|
8
7
|
export const Chat = () => {
|
|
9
8
|
const { selectedConversation } = useChatUIStore();
|
|
10
9
|
return (
|
|
11
10
|
<>
|
|
12
11
|
<div className='container mx-auto mb-5'>
|
|
13
|
-
<div className='grid grid-cols-
|
|
12
|
+
<div className='grid grid-cols-7 sm:h-[450px] md:h-[550px] rounded-lg overflow-hidden bg-gray-400 bg-clip-padding backdrop-filter backdrop-blur-lg bg-opacity-0'>
|
|
14
13
|
<div />
|
|
15
14
|
{selectedConversation ? (
|
|
16
15
|
<>
|
|
17
|
-
<div className={`xs:hidden
|
|
18
|
-
<div className='
|
|
16
|
+
<div className={`xs:hidden grid col-span-3 border max-h-screen overflow-y-auto`}><Sidebar /></div>
|
|
17
|
+
<div className='col-span-4 border max-h-screen overflow-y-auto '>
|
|
19
18
|
<MessageContainer />
|
|
20
19
|
</div>
|
|
21
20
|
</>
|
|
22
21
|
) : (
|
|
23
22
|
<>
|
|
24
|
-
<div className='
|
|
25
|
-
<div className='xs:hidden
|
|
23
|
+
<div className='col-span-3 border max-h-screen overflow-y-auto '><Sidebar /></div>
|
|
24
|
+
<div className='xs:hidden col-span-4 border '>
|
|
26
25
|
<MessageContainer />
|
|
27
26
|
</div>
|
|
28
27
|
</>
|
package/src/index.tsx
CHANGED