From 025fb631b7ffd7a870f2e2aaebeb5a46edfef375 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 20 May 2022 08:07:00 -0600 Subject: [PATCH] Update "jump to related event" for design requirements & dev tooling (#8652) --- res/css/views/context_menus/_MessageContextMenu.scss | 2 +- res/img/element-icons/child-relationship.svg | 1 + res/img/element-icons/left-arrow.svg | 1 - src/components/views/context_menus/MessageContextMenu.tsx | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 res/img/element-icons/child-relationship.svg delete mode 100644 res/img/element-icons/left-arrow.svg diff --git a/res/css/views/context_menus/_MessageContextMenu.scss b/res/css/views/context_menus/_MessageContextMenu.scss index dde68e8bad..90a1c58ee3 100644 --- a/res/css/views/context_menus/_MessageContextMenu.scss +++ b/res/css/views/context_menus/_MessageContextMenu.scss @@ -111,6 +111,6 @@ limitations under the License. } .mx_MessageContextMenu_jumpToEvent::before { - mask-image: url('$(res)/img/element-icons/left-arrow.svg'); + mask-image: url('$(res)/img/element-icons/child-relationship.svg'); } } diff --git a/res/img/element-icons/child-relationship.svg b/res/img/element-icons/child-relationship.svg new file mode 100644 index 0000000000..5a848c0d97 --- /dev/null +++ b/res/img/element-icons/child-relationship.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/res/img/element-icons/left-arrow.svg b/res/img/element-icons/left-arrow.svg deleted file mode 100644 index 557efbebd2..0000000000 --- a/res/img/element-icons/left-arrow.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/views/context_menus/MessageContextMenu.tsx b/src/components/views/context_menus/MessageContextMenu.tsx index f77ead6f76..725065e95d 100644 --- a/src/components/views/context_menus/MessageContextMenu.tsx +++ b/src/components/views/context_menus/MessageContextMenu.tsx @@ -499,7 +499,7 @@ export default class MessageContextMenu extends React.Component let jumpToRelatedEventButton: JSX.Element; const relatedEventId = mxEvent.getWireContent()?.["m.relates_to"]?.event_id; - if (relatedEventId) { + if (relatedEventId && SettingsStore.getValue("developerMode")) { jumpToRelatedEventButton = (