From 11c69bf01223d7f8d1e4dd972452b063562ba945 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Mon, 20 Jul 2026 14:49:15 +0300 Subject: [PATCH] Center the panel menu under the button The button was created with menuAlignment 0.0, which places the arrow at the menu's left edge while it still points at the button's center, so the menu opened from the middle of the widget. Use 0.5 to match the default source alignment and center the menu under the button like other indicators. Co-Authored-By: Claude Opus 4.8 (1M context) --- lib/indicator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/indicator.js b/lib/indicator.js index fa76df8..e2481c4 100644 --- a/lib/indicator.js +++ b/lib/indicator.js @@ -17,7 +17,7 @@ import { formatSpeed, formatSpeedShort } from './format.js'; export const SingBoxIndicator = GObject.registerClass( class SingBoxIndicator extends PanelMenu.Button { _init(extension) { - super._init(0.0, 'sing-box Status', false); + super._init(0.5, 'sing-box Status', false); this._extension = extension; this._settings = extension.getSettings();