File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed
src/components/structures
test/components/structures/__snapshots__ Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,7 @@ limitations under the License.
370
370
padding : 0 2 px 8 px ;
371
371
border-bottom : 1 px solid $quinary-content ;
372
372
margin : 12 px 14 px 4 px 18 px ;
373
+ max-width : 226 px ;
373
374
}
374
375
}
375
376
Original file line number Diff line number Diff line change @@ -46,7 +46,14 @@ limitations under the License.
46
46
}
47
47
}
48
48
49
+ .mx_UserMenu_contextMenuButton {
50
+ width : 100 % ;
51
+ }
52
+
49
53
.mx_UserMenu_name {
54
+ overflow : hidden;
55
+ text-overflow : ellipsis;
56
+ white-space : nowrap;
50
57
font-weight : var (--cpd-font-weight-semibold );
51
58
font-size : $font-15px ;
52
59
line-height : $font-24px ;
Original file line number Diff line number Diff line change @@ -446,6 +446,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
446
446
return (
447
447
< div className = "mx_UserMenu" >
448
448
< ContextMenuButton
449
+ className = "mx_UserMenu_contextMenuButton"
449
450
onClick = { this . onOpenMenuClick }
450
451
inputRef = { this . buttonRef }
451
452
label = { _t ( "User menu" ) }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ exports[`<UserMenu> when rendered should render as expected 1`] = `
9
9
aria-expanded = " false"
10
10
aria-haspopup = " true"
11
11
aria-label = " User menu"
12
- class = " mx_AccessibleButton"
12
+ class = " mx_AccessibleButton mx_UserMenu_contextMenuButton "
13
13
role = " button"
14
14
tabindex = " 0"
15
15
title = " User menu"
You can’t perform that action at this time.
0 commit comments