From c265688c8ba96636fa731df946ba9af3f688cba3 Mon Sep 17 00:00:00 2001 From: Denis Gladkiy Date: Fri, 24 Oct 2025 17:32:15 +0600 Subject: [PATCH] Back/Forward buttons move into the title bar. Signed-off-by: Denis Gladkiy --- desktop/src/ui/index.ejs | 18 ++++++++++++++++++ desktop/src/ui/titleBarMenu.ts | 8 ++++++++ 2 files changed, 26 insertions(+) diff --git a/desktop/src/ui/index.ejs b/desktop/src/ui/index.ejs index 5560107cc9..9c5c3a23da 100644 --- a/desktop/src/ui/index.ejs +++ b/desktop/src/ui/index.ejs @@ -43,6 +43,10 @@ --huly-history-box-left-indent: 0; } + .history-box { + display: none !important; + } + [data-theme="theme-dark"] { --bg-body: #1a1928; --bg-secondary: #323233; @@ -207,6 +211,15 @@ user-select: none; } + .desktop-app-control-button.desktop-app-back, + .desktop-app-control-button.desktop-app-forward { + font-size: 16px; + font-weight: 700; + line-height: 1; + padding-bottom: 2px; + -webkit-text-stroke: 0.5px currentColor; + } + .desktop-app-control-button:hover { background-color: var(--bg-hover); } @@ -229,6 +242,11 @@
+
+ + +
+
Huly
diff --git a/desktop/src/ui/titleBarMenu.ts b/desktop/src/ui/titleBarMenu.ts index 32179830a3..601bbd2148 100644 --- a/desktop/src/ui/titleBarMenu.ts +++ b/desktop/src/ui/titleBarMenu.ts @@ -365,6 +365,14 @@ class MenuBarManager { ipcMain.closeWindow() }) + this.onButtonClick('back-button', () => { + history.back() + }) + + this.onButtonClick('forward-button', () => { + history.forward() + }) + document.addEventListener('keydown', (e) => { this.handleKeyDown(ipcMain, e) }) document.addEventListener('keyup', (e) => { this.handleKeyUp(e) })