From f54a2f043503cfb7da446b3393c8aae577b85e4b Mon Sep 17 00:00:00 2001 From: abose Date: Mon, 20 Apr 2026 21:03:40 +0530 Subject: [PATCH] feat: replace CCB file label with Show-in-File-Tree button - Remove the .ccb-group-file block (HTML, JS wiring, LESS). The vertical file name is redundant with the live-preview heading and file tabs. - Drop no-longer-used DocumentManager and MainViewManager requires, plus the _updateFileLabel function and its event subscriptions. - Add #ccbShowInTreeBtn below #searchNav in .ccb-group-nav with the legacy binoculars glyph inlined as SVG using currentColor so it inherits the button color. ViewBox tightened to 16x16 so the artwork fills the rendering box at the same weight as the pen-nib icon. - Button invokes the existing NAVIGATE_SHOW_IN_FILE_TREE command and uses the existing Strings.CMD_SHOW_IN_TREE localized title. - Update control-bar-tests-todo.md: replace the three file-label bullets with checks for the new button. --- src/index.html | 12 +++---- src/styles/CentralControlBar.less | 57 ++++--------------------------- src/view/CentralControlBar.js | 35 ++----------------- test/control-bar-tests-todo.md | 14 +++++--- 4 files changed, 22 insertions(+), 96 deletions(-) diff --git a/src/index.html b/src/index.html index 88d90271b..a29e28d7f 100644 --- a/src/index.html +++ b/src/index.html @@ -964,16 +964,14 @@
+ + +
-
-
-
- - -
-