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

Commit 81533b9

Browse files
robintownt3chguy
andauthored
Better accommodate long room names in call toasts (#9426)
* Better accommodate long room names in call toasts * Use a font weight variable Co-authored-by: Michael Telatynski <[email protected]> Co-authored-by: Michael Telatynski <[email protected]>
1 parent 195065b commit 81533b9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

res/css/views/toasts/_IncomingCallToast.pcss

+8-3
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,27 @@ limitations under the License.
2121
pointer-events: initial; /* restore pointer events so the user can accept/decline */
2222
width: 250px;
2323

24+
$closeButtonSize: 16px;
25+
2426
.mx_IncomingCallToast_content {
2527
display: flex;
2628
flex-direction: column;
2729
margin-left: 8px;
2830
width: 100%;
31+
overflow: hidden;
2932

3033
.mx_IncomingCallToast_info {
3134
margin-bottom: $spacing-16;
3235

3336
.mx_IncomingCallToast_room {
3437
display: inline-block;
3538

36-
font-weight: bold;
39+
font-weight: $font-semi-bold;
3740
font-size: $font-15px;
3841
line-height: $font-24px;
3942

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

8893
display: flex;
89-
height: 16px;
90-
width: 16px;
94+
height: $closeButtonSize;
95+
width: $closeButtonSize;
9196

9297
&::before {
9398
content: '';

0 commit comments

Comments
 (0)