Middle Header: Fix overflowing status text (#1664)

This commit is contained in:
Alexander Zinchuk 2022-01-25 03:24:29 +01:00
parent e3d857b466
commit b43cde120d
3 changed files with 13 additions and 7 deletions

View File

@ -102,7 +102,7 @@ const GroupChatInfo: FC<OwnProps & StateProps> = ({
if (withChatType) {
return (
<div className="status" dir="auto">{lang(getChatTypeString(chat))}</div>
<span className="status" dir="auto">{lang(getChatTypeString(chat))}</span>
);
}
@ -111,11 +111,11 @@ const GroupChatInfo: FC<OwnProps & StateProps> = ({
const onlineStatus = onlineCount ? `, ${lang('OnlineCount', onlineCount, 'i')}` : undefined;
return (
<div className="status">
<span className="status">
{handle && <span className="handle">{handle}</span>}
<span className="group-status">{groupStatus}</span>
{onlineStatus && <span className="online-status">{onlineStatus}</span>}
</div>
</span>
);
}

View File

@ -110,10 +110,10 @@ const PrivateChatInfo: FC<OwnProps & StateProps> = ({
}
return (
<div className={`status ${isUserOnline(user, userStatus) ? 'online' : ''}`}>
<span className={`status ${isUserOnline(user, userStatus) ? 'online' : ''}`}>
{withUsername && user.username && <span className="handle">{user.username}</span>}
<span className="user-status" dir="auto">{getUserStatus(lang, user, userStatus, serverTimeOffset)}</span>
</div>
</span>
);
}

View File

@ -282,9 +282,15 @@
}
}
.status {
display: flex;
.status, .typing-status {
display: inline;
unicode-bidi: plaintext;
@media (min-width: 1275px) {
#Main.right-column-open & {
max-width: calc(100% - var(--right-column-width));
}
}
}
.user-status {