From 8f05b2469414566122d84f50d94a702e96517ca0 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Wed, 20 Nov 2024 14:39:19 +0200 Subject: [PATCH] Move back the close tab-related actions at the top of the menu --- src/public/app/widgets/tab_row.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/public/app/widgets/tab_row.js b/src/public/app/widgets/tab_row.js index 5de0396b2..1ccec1267 100644 --- a/src/public/app/widgets/tab_row.js +++ b/src/public/app/widgets/tab_row.js @@ -259,15 +259,15 @@ export default class TabRowWidget extends BasicWidget { x: e.pageX, y: e.pageY, items: [ - {title: t('tab_row.move_tab_to_new_window'), command: "moveTabToNewWindow", uiIcon: "bx bx-window-open"}, - - {title: "----"}, - {title: t('tab_row.close'), command: "closeTab", uiIcon: "bx bxs-x-circle destructive-action-icon"}, {title: t('tab_row.close_other_tabs'), command: "closeOtherTabs", uiIcon: "bx bx-empty", enabled: appContext.tabManager.noteContexts.length !== 1}, {title: t('tab_row.close_right_tabs'), command: "closeRightTabs", uiIcon: "bx bx-empty", enabled: appContext.tabManager.noteContexts.at(-1).ntxId !== ntxId}, - {title: t('tab_row.close_all_tabs'), command: "closeAllTabs", uiIcon: "bx bx-empty"} - ], + {title: t('tab_row.close_all_tabs'), command: "closeAllTabs", uiIcon: "bx bx-empty"}, + + {title: "----"}, + + {title: t('tab_row.move_tab_to_new_window'), command: "moveTabToNewWindow", uiIcon: "bx bx-window-open"}, + ], selectMenuItemHandler: ({command}) => { this.triggerCommand(command, {ntxId}); }