[MM-63382] Calls: Fix rendering of long user/channel name in call bar (#8804)
* Calls: Fix rendering of long user/channel name in call bar * Fix linting
This commit is contained in:
parent
8453eee0e3
commit
0e67bc8944
1 changed files with 10 additions and 2 deletions
|
|
@ -193,7 +193,11 @@ const CurrentCallBar = ({
|
|||
</Text>);
|
||||
if (speaker) {
|
||||
talkingMessage = (
|
||||
<Text style={style.speakingUser}>
|
||||
<Text
|
||||
style={style.speakingUser}
|
||||
numberOfLines={1}
|
||||
ellipsizeMode='middle'
|
||||
>
|
||||
{displayUsername(sessionsDict[speaker].userModel, intl.locale, teammateNameDisplay)}
|
||||
{' '}
|
||||
<Text style={style.speakingPostfix}>{
|
||||
|
|
@ -249,7 +253,11 @@ const CurrentCallBar = ({
|
|||
</View>
|
||||
<View style={style.text}>
|
||||
{talkingMessage}
|
||||
<Text style={style.channelAndTime}>
|
||||
<Text
|
||||
style={style.channelAndTime}
|
||||
numberOfLines={1}
|
||||
ellipsizeMode='middle'
|
||||
>
|
||||
{`~${displayName}`}
|
||||
<Text style={style.separator}>{' • '}</Text>
|
||||
<CallDuration
|
||||
|
|
|
|||
Loading…
Reference in a new issue