Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
truncate room name on pip header (#7538)
Browse files Browse the repository at this point in the history
Signed-off-by: Kerry Archibald <kerrya@element.io>
  • Loading branch information
Kerry authored Jan 14, 2022
1 parent 47c112b commit 50de35c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions res/css/views/voip/_CallViewHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,18 @@ limitations under the License.
.mx_CallViewHeader_callInfo {
margin-left: 12px;
margin-right: 16px;
overflow: hidden;
}

.mx_CallViewHeader_roomName {
font-weight: bold;
font-size: 12px;
line-height: initial;
height: 15px;

overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.mx_CallView_secondaryCall_roomName {
Expand Down
2 changes: 1 addition & 1 deletion src/components/views/voip/CallView/CallViewHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const CallViewHeader: React.FC<CallViewHeaderProps> = ({
>
<RoomAvatar room={callRoom} height={32} width={32} />
<div className="mx_CallViewHeader_callInfo">
<div className="mx_CallViewHeader_roomName">{ callRoomName }</div>
<div className="mx_CallViewHeader_roomName" title={callRoomName}>{ callRoomName }</div>
<div className="mx_CallViewHeader_callTypeSmall">
{ callTypeText }
{ onHoldCallRoom && <SecondaryCallInfo callRoom={onHoldCallRoom} /> }
Expand Down

0 comments on commit 50de35c

Please sign in to comment.