Убрал аватары и имена внутри чата личных чатов

This commit is contained in:
Халимов Рустам
2026-04-20 22:37:51 +03:00
parent 2b51375fbf
commit 72325f48e5
@@ -459,7 +459,7 @@ function MessageBubble({
</div> </div>
)} )}
{!isMine && ( {!isMine && activeChat?.type !== 'personal' && activeChat?.type !== 'favorites' && (
<div className="w-8 flex-shrink-0 mr-2 self-end"> <div className="w-8 flex-shrink-0 mr-2 self-end">
{showAvatar ? ( {showAvatar ? (
<button onClick={() => onViewProfile?.(message.senderId)}> <button onClick={() => onViewProfile?.(message.senderId)}>
@@ -476,7 +476,7 @@ function MessageBubble({
)} )}
<div className={`max-[500px]:max-w-[85%] max-w-[75%] lg:max-w-[65%] min-w-0 ${isMine ? 'items-end' : 'items-start'} flex flex-col`}> <div className={`max-[500px]:max-w-[85%] max-w-[75%] lg:max-w-[65%] min-w-0 ${isMine ? 'items-end' : 'items-start'} flex flex-col`}>
{!isMine && showAvatar && ( {!isMine && showAvatar && activeChat?.type !== 'personal' && activeChat?.type !== 'favorites' && (
<button <button
className="text-xs font-medium text-knot-400 ml-3 mb-0.5 hover:underline" className="text-xs font-medium text-knot-400 ml-3 mb-0.5 hover:underline"
onClick={() => onViewProfile?.(message.senderId)} onClick={() => onViewProfile?.(message.senderId)}
@@ -1096,7 +1096,7 @@ function MessageBubble({
)} )}
</div> </div>
{isMine && ( {isMine && activeChat?.type !== 'personal' && activeChat?.type !== 'favorites' && (
<div className="w-8 flex-shrink-0 ml-2 self-end"> <div className="w-8 flex-shrink-0 ml-2 self-end">
{showAvatar ? ( {showAvatar ? (
<button onClick={() => onViewProfile?.(message.senderId)}> <button onClick={() => onViewProfile?.(message.senderId)}>