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

Limit width of user menu in space panel #11192

Merged
merged 1 commit into from
Jul 5, 2023
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
1 change: 1 addition & 0 deletions res/css/structures/_SpacePanel.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ limitations under the License.
padding: 0 2px 8px;
border-bottom: 1px solid $quinary-content;
margin: 12px 14px 4px 18px;
max-width: 226px;
}
}

Expand Down
7 changes: 7 additions & 0 deletions res/css/structures/_UserMenu.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ limitations under the License.
}
}

.mx_UserMenu_contextMenuButton {
width: 100%;
}

.mx_UserMenu_name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: var(--cpd-font-weight-semibold);
font-size: $font-15px;
line-height: $font-24px;
Expand Down
1 change: 1 addition & 0 deletions src/components/structures/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
return (
<div className="mx_UserMenu">
<ContextMenuButton
className="mx_UserMenu_contextMenuButton"
onClick={this.onOpenMenuClick}
inputRef={this.buttonRef}
label={_t("User menu")}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`<UserMenu> when rendered should render as expected 1`] = `
aria-expanded="false"
aria-haspopup="true"
aria-label="User menu"
class="mx_AccessibleButton"
class="mx_AccessibleButton mx_UserMenu_contextMenuButton"
role="button"
tabindex="0"
title="User menu"
Expand Down