@@ -302,19 +302,18 @@ export default function Chat({ user }: { user: ChatUserShape }) {
302302 : undefined ;
303303
304304 const activeLabel = isGlobalActive
305- ? "Global Chat "
305+ ? "Global"
306306 : activeOtherUser ?. email ?. split ( "@" ) [ 0 ] || "Unknown" ;
307307
308308 const activeSublabel = isGlobalActive
309- ? "Public Channel "
309+ ? "Worldwide "
310310 : activeOtherUserOnline
311311 ? "Online"
312312 : "Offline" ;
313313
314- const activeSublabelClass =
315- activeOtherUserOnline || isGlobalActive
316- ? "text-emerald-600"
317- : "text-gray-500" ;
314+ const activeSublabelClass = activeOtherUserOnline
315+ ? "text-emerald-600"
316+ : "text-gray-500" ;
318317
319318 const typingIndicatorText = activeTypingState
320319 ? isGlobalActive
@@ -355,15 +354,15 @@ export default function Chat({ user }: { user: ChatUserShape }) {
355354 attachments = { allMediaAttachments }
356355 onChange = { setMediaViewer }
357356 />
358- < div className = "flex h-screen w-full bg-transparent text-gray-900 overflow-hidden relative" >
357+ < div className = "flex h-220 sm:h- screen w-full bg-transparent text-gray-900 overflow-hidden relative" >
359358 { /* Left Sidebar */ }
360359 < div
361- className = { `w-full md:w-[300px] flex-shrink-0 border-r border-gray-200 flex flex-col bg-white md:bg-transparent z-20 absolute md:relative h-full transition-transform duration-300 ${ conversationId ? "-translate-x-full md:translate-x-0" : "translate-x-0" } ` }
360+ className = { `w-full md:w-[300px] flex-shrink-0 border-r border-gray-200 flex flex-col bg-white z-20 absolute md:relative h-full transition-transform duration-300 ${ conversationId ? "-translate-x-full md:translate-x-0" : "translate-x-0" } ` }
362361 >
363362 < div className = "p-5 border-b border-gray-200" >
364363 < div className = "flex items-center justify-between mb-4" >
365364 < h2 className = "text-lg font-bold text-gray-700 tracking-tight" >
366- Message category
365+ Messages
367366 </ h2 >
368367 < button
369368 onClick = { ( ) => setShowModal ( true ) }
@@ -492,7 +491,7 @@ export default function Chat({ user }: { user: ChatUserShape }) {
492491 { conversationId ? (
493492 < >
494493 { /* Header */ }
495- < div className = "h-[72px] flex items-center justify-between px-4 sm:px-6 border-b border-gray-200 bg-white/[0.01] z-10 flex-shrink-0" >
494+ < div className = "h-[72px] flex items-center justify-between px-4 sm:px-6 border-b border-gray-200 bg-white z-10 flex-shrink-0" >
496495 < div className = "flex items-center gap-2 sm:gap-3.5" >
497496 < button
498497 onClick = { ( ) => setConversationId ( null ) }
@@ -503,16 +502,6 @@ export default function Chat({ user }: { user: ChatUserShape }) {
503502 className = "w-3.5 h-3.5"
504503 />
505504 </ button >
506- < div className = "relative" >
507- < div
508- className = { `flex justify-center items-center w-11 h-11 rounded-full text-[16px] font-bold shadow-sm ${ isGlobalActive ? "bg-blue-500/15 text-blue-600 border border-blue-500/30" : "bg-neutral-800 text-gray-700 border border-gray-200" } ` }
509- >
510- { activeInitials }
511- </ div >
512- { ! isGlobalActive && activeOtherUserOnline && (
513- < div className = "absolute bottom-0.5 right-0.5 w-3 h-3 bg-emerald-400 border-[2px] border-transparent rounded-full" > </ div >
514- ) }
515- </ div >
516505 < div >
517506 < h2 className = "text-[16px] font-bold text-gray-700 leading-tight" >
518507 { activeLabel }
@@ -682,7 +671,7 @@ export default function Chat({ user }: { user: ChatUserShape }) {
682671 { /* Right Sidebar */ }
683672 { conversationId && (
684673 < div
685- className = { `w-full sm:w-[320px] flex-shrink-0 border-l border-gray-200 flex flex-col absolute right-0 top-0 bottom-0 h-full z-40 bg-white md:bg-white xl:bg-transparent xl:relative xl:transform-none transition-transform duration-300 ${ showRightSidebar ? "translate-x-0" : "translate-x-full xl:translate-x-0 xl:hidden" } ` }
674+ className = { `w-full sm:w-[320px] flex-shrink-0 border-l border-gray-200 flex flex-col absolute right-0 top-0 bottom-0 h-full z-40 bg-white xl:bg-transparent xl:relative xl:transform-none transition-transform duration-300 ${ showRightSidebar ? "translate-x-0" : "translate-x-full xl:translate-x-0 xl:hidden" } ` }
686675 >
687676 < div className = "absolute top-4 right-4 xl:hidden" >
688677 < button
@@ -839,9 +828,11 @@ export default function Chat({ user }: { user: ChatUserShape }) {
839828 ) }
840829
841830 { showModal && (
842- < div className = "fixed inset-0 flex items-center justify-center bg-black/70 z-50 backdrop-blur-sm" >
843- < div className = "glass-card w-[400px] p-6" >
844- < h3 className = "text-lg font-bold text-gray-900 mb-4" > New Message</ h3 >
831+ < div className = "fixed p-5 inset-0 flex items-center justify-center bg-black/70 z-50 backdrop-blur-sm" >
832+ < div className = "glass-card p-8" >
833+ < h3 className = "text-lg font-bold text-gray-900 mb-4" >
834+ New Message
835+ </ h3 >
845836 < input
846837 value = { search }
847838 onChange = { ( e ) => setSearch ( e . target . value ) }
0 commit comments