tweak context menu order

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
pull/21833/head
Michael Weimann 2021-05-25 12:41:34 +02:00
parent 8f6904ec1b
commit ffca23344a
No known key found for this signature in database
GPG Key ID: 34F0524D4DA694A1
1 changed files with 15 additions and 15 deletions

View File

@ -392,7 +392,7 @@ export default class MessageContextMenu extends React.Component {
if (forwardButton || quoteButton || collapseReplyThread) { if (forwardButton || quoteButton || collapseReplyThread) {
optionLists.push(( optionLists.push((
<IconizedContextMenuOptionList> <IconizedContextMenuOptionList key={'group1'}>
{quoteButton} {quoteButton}
{forwardButton} {forwardButton}
{collapseReplyThread} {collapseReplyThread}
@ -402,7 +402,7 @@ export default class MessageContextMenu extends React.Component {
if (resendReactionsButton) { if (resendReactionsButton) {
optionLists.push(( optionLists.push((
<IconizedContextMenuOptionList> <IconizedContextMenuOptionList key={'group2'}>
{resendReactionsButton} {resendReactionsButton}
</IconizedContextMenuOptionList> </IconizedContextMenuOptionList>
)); ));
@ -410,25 +410,16 @@ export default class MessageContextMenu extends React.Component {
if (externalURLButton || permalinkButton) { if (externalURLButton || permalinkButton) {
optionLists.push(( optionLists.push((
<IconizedContextMenuOptionList> <IconizedContextMenuOptionList key={'group3'}>
{externalURLButton} {externalURLButton}
{permalinkButton} {permalinkButton}
</IconizedContextMenuOptionList> </IconizedContextMenuOptionList>
)); ));
} }
if (pinButton || unhidePreviewButton) {
optionLists.push((
<IconizedContextMenuOptionList>
{pinButton}
{unhidePreviewButton}
</IconizedContextMenuOptionList>
));
}
if (reportEventButton) { if (reportEventButton) {
optionLists.push(( optionLists.push((
<IconizedContextMenuOptionList> <IconizedContextMenuOptionList key={'group4'}>
{reportEventButton} {reportEventButton}
</IconizedContextMenuOptionList> </IconizedContextMenuOptionList>
)); ));
@ -436,15 +427,24 @@ export default class MessageContextMenu extends React.Component {
if (viewSourceButton) { if (viewSourceButton) {
optionLists.push(( optionLists.push((
<IconizedContextMenuOptionList> <IconizedContextMenuOptionList key={'group5'}>
{viewSourceButton} {viewSourceButton}
</IconizedContextMenuOptionList> </IconizedContextMenuOptionList>
)); ));
} }
if (pinButton || unhidePreviewButton) {
optionLists.push((
<IconizedContextMenuOptionList key={'group6'}>
{pinButton}
{unhidePreviewButton}
</IconizedContextMenuOptionList>
));
}
if (redactButton) { if (redactButton) {
optionLists.push(( optionLists.push((
<IconizedContextMenuOptionList red> <IconizedContextMenuOptionList key={'group7'} red>
{redactButton} {redactButton}
</IconizedContextMenuOptionList> </IconizedContextMenuOptionList>
)); ));