tweak context menu order
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>pull/21833/head
parent
8f6904ec1b
commit
ffca23344a
|
@ -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>
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in New Issue