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

truncate room name on pip header #7538

Merged
merged 2 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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