@@ -990,18 +990,6 @@ const ChatRoomContainer: React.FC<ChatRoomContainerProps> = ({
990990
991991 { /* Action Buttons */ }
992992 < div className = "flex flex-wrap sm:flex-nowrap items-center gap-2 mt-2 sm:mt-0 w-full sm:w-auto" >
993- < button
994- onClick = { ( ) => handleFollowChat ( room . id ) }
995- disabled = { followLoading }
996- className = { `p-2 rounded-lg transition-colors ${ isFollowing
997- ? 'text-blue-500 hover:bg-blue-50 dark:hover:bg-blue-900/30'
998- : 'text-gray-400 hover:text-blue-500 hover:bg-gray-100 dark:hover:bg-gray-700'
999- } `}
1000- title = { isFollowing ? ( t ( 'chat.unfollow' ) || 'Unfollow' ) : ( t ( 'chat.follow' ) || 'Follow' ) }
1001- >
1002- { isFollowing ? < BellOff size = { 20 } /> : < Bell size = { 20 } /> }
1003- </ button >
1004-
1005993 { /* VOIP Button */ }
1006994 { ! room . is_public && ( roomData ?. voip_enabled ?? room . voip_enabled ) && (
1007995 < div className = "flex-1 sm:flex-none" >
@@ -1015,34 +1003,49 @@ const ChatRoomContainer: React.FC<ChatRoomContainerProps> = ({
10151003 />
10161004 </ div >
10171005 ) }
1018- < div className = "flex flex-col min-[925px]:flex-row gap-2 flex-1 sm:flex-none" >
1019- { isOwner && (
1020- < button
1021- onClick = { ( ) => {
1022- setMembersModalMode ( 'manage' ) ;
1023- setShowMembersModal ( true ) ;
1024- } }
1025- className = "flex-1 px-4 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center justify-center gap-2 transition-colors whitespace-nowrap min-w-fit"
1026- title = { t ( 'chat.manageChat' ) || 'Manage Chat' }
1027- >
1028- < svg className = "w-4 h-4" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
1029- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
1030- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
1031- </ svg >
1032- < span className = "truncate hidden min-[1050px]:inline" > { t ( 'chat.manageChat' ) || 'Manage' } </ span >
1033- </ button >
1034- ) }
1035- { onBack && (
1036- < button
1037- onClick = { onBack }
1038- className = "flex-1 px-4 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center justify-center gap-2 transition-colors whitespace-nowrap min-w-fit"
1039- >
1040- < svg className = "w-4 h-4" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
1041- < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M10 19l-7-7m0 0l7-7m-7 7h18" />
1042- </ svg >
1043- < span className = "hidden min-[1050px]:inline" > { t ( 'common.back' ) } </ span >
1044- </ button >
1045- ) }
1006+
1007+ < div className = "flex items-center gap-2 flex-1 sm:flex-none w-full sm:w-auto" >
1008+ < button
1009+ onClick = { ( ) => handleFollowChat ( room . id ) }
1010+ disabled = { followLoading }
1011+ className = { `p-2 rounded-lg transition-colors flex-none ${ isFollowing
1012+ ? 'text-blue-500 hover:bg-blue-50 dark:hover:bg-blue-900/30'
1013+ : 'text-gray-400 hover:text-blue-500 hover:bg-gray-100 dark:hover:bg-gray-700'
1014+ } `}
1015+ title = { isFollowing ? ( t ( 'chat.unfollow' ) || 'Unfollow' ) : ( t ( 'chat.follow' ) || 'Follow' ) }
1016+ >
1017+ { isFollowing ? < BellOff size = { 20 } /> : < Bell size = { 20 } /> }
1018+ </ button >
1019+
1020+ < div className = "flex flex-row gap-2 flex-1 min-w-0" >
1021+ { isOwner && (
1022+ < button
1023+ onClick = { ( ) => {
1024+ setMembersModalMode ( 'manage' ) ;
1025+ setShowMembersModal ( true ) ;
1026+ } }
1027+ className = "flex-1 px-4 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center justify-center gap-2 transition-colors whitespace-nowrap min-w-fit"
1028+ title = { t ( 'chat.manageChat' ) || 'Manage Chat' }
1029+ >
1030+ < svg className = "w-4 h-4" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
1031+ < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
1032+ < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
1033+ </ svg >
1034+ < span className = "truncate hidden min-[1050px]:inline" > { t ( 'chat.manageChat' ) || 'Manage' } </ span >
1035+ </ button >
1036+ ) }
1037+ { onBack && (
1038+ < button
1039+ onClick = { onBack }
1040+ className = "flex-1 px-4 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 flex items-center justify-center gap-2 transition-colors whitespace-nowrap min-w-fit"
1041+ >
1042+ < svg className = "w-4 h-4" fill = "none" stroke = "currentColor" viewBox = "0 0 24 24" >
1043+ < path strokeLinecap = "round" strokeLinejoin = "round" strokeWidth = { 2 } d = "M10 19l-7-7m0 0l7-7m-7 7h18" />
1044+ </ svg >
1045+ < span className = "hidden min-[1050px]:inline" > { t ( 'common.back' ) } </ span >
1046+ </ button >
1047+ ) }
1048+ </ div >
10461049 </ div >
10471050 </ div >
10481051 </ div >
0 commit comments