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

Better accommodate long room names in call toasts #9426

Merged
merged 4 commits into from
Oct 14, 2022
Merged
Changes from 1 commit
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
Next Next commit
Better accommodate long room names in call toasts
robintown committed Oct 14, 2022
commit 45c38d78d8a7546db784bf876e9f1f133b5cdaf8
11 changes: 8 additions & 3 deletions res/css/views/toasts/_IncomingCallToast.pcss
Original file line number Diff line number Diff line change
@@ -21,22 +21,27 @@ limitations under the License.
pointer-events: initial; /* restore pointer events so the user can accept/decline */
width: 250px;

$closeButtonSize: 16px;

.mx_IncomingCallToast_content {
display: flex;
flex-direction: column;
margin-left: 8px;
width: 100%;
overflow: hidden;

.mx_IncomingCallToast_info {
margin-bottom: $spacing-16;

.mx_IncomingCallToast_room {
display: inline-block;

font-weight: bold;
font-weight: 600;
font-size: $font-15px;
line-height: $font-24px;

/* Prevent overlap with the close button */
width: calc(100% - $closeButtonSize - 2 * $spacing-4);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -86,8 +91,8 @@ limitations under the License.
right: $spacing-4;

display: flex;
height: 16px;
width: 16px;
height: $closeButtonSize;
width: $closeButtonSize;

&::before {
content: '';