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

Commit

Permalink
Fix width overflow in mini composer overflow menu (#7411)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Dec 23, 2021
1 parent f94bad7 commit a9d1f6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions res/css/views/rooms/_MessageComposer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,12 @@ limitations under the License.
.mx_MessageComposer_Menu .mx_CallContextMenu_item {
display: flex;
align-items: center;
max-width: unset;
width: 100%;
}

.mx_MessageComposer_Menu .mx_ContextualMenu {
min-width: 150px;
width: max-content;
padding: 5px 10px 5px 0;
}
4 changes: 0 additions & 4 deletions src/components/views/rooms/MessageComposer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,6 @@ export default class MessageComposer extends React.Component<IProps, IState> {
<ContextMenu
onFinished={this.toggleButtonMenu}
{...menuPosition}
menuPaddingRight={10}
menuPaddingTop={5}
menuPaddingBottom={5}
menuWidth={150}
wrapperClassName="mx_MessageComposer_Menu"
>
{ buttons.map((button, index) => (
Expand Down

0 comments on commit a9d1f6e

Please sign in to comment.