Fix width overflow in mini composer overflow menu (#7411)

This commit is contained in:
Michael Telatynski 2021-12-23 12:01:21 +00:00 committed by GitHub
parent f94bad7f0a
commit a9d1f6e616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -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;
}

View File

@ -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) => (