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 <7t3chguy@gmail.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
195065b217
commit
81533b905f
1 changed files with 8 additions and 3 deletions
|
@ -21,11 +21,14 @@ limitations under the License.
|
||||||
pointer-events: initial; /* restore pointer events so the user can accept/decline */
|
pointer-events: initial; /* restore pointer events so the user can accept/decline */
|
||||||
width: 250px;
|
width: 250px;
|
||||||
|
|
||||||
|
$closeButtonSize: 16px;
|
||||||
|
|
||||||
.mx_IncomingCallToast_content {
|
.mx_IncomingCallToast_content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
.mx_IncomingCallToast_info {
|
.mx_IncomingCallToast_info {
|
||||||
margin-bottom: $spacing-16;
|
margin-bottom: $spacing-16;
|
||||||
|
@ -33,10 +36,12 @@ limitations under the License.
|
||||||
.mx_IncomingCallToast_room {
|
.mx_IncomingCallToast_room {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
||||||
font-weight: bold;
|
font-weight: $font-semi-bold;
|
||||||
font-size: $font-15px;
|
font-size: $font-15px;
|
||||||
line-height: $font-24px;
|
line-height: $font-24px;
|
||||||
|
|
||||||
|
/* Prevent overlap with the close button */
|
||||||
|
width: calc(100% - $closeButtonSize - 2 * $spacing-4);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -86,8 +91,8 @@ limitations under the License.
|
||||||
right: $spacing-4;
|
right: $spacing-4;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 16px;
|
height: $closeButtonSize;
|
||||||
width: 16px;
|
width: $closeButtonSize;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: '';
|
content: '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue