From 417b37309327c4125c422c1e3011f05f113a6e2b Mon Sep 17 00:00:00 2001 From: Ngo Quoc Dat Date: Mon, 1 Jun 2026 22:36:47 +0700 Subject: [PATCH] fix(toolbar): center the connection chip with the visible window title (#1479) --- TablePro/Core/Services/Infrastructure/MainWindowToolbar.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TablePro/Core/Services/Infrastructure/MainWindowToolbar.swift b/TablePro/Core/Services/Infrastructure/MainWindowToolbar.swift index 1ab57a5f1..63618d593 100644 --- a/TablePro/Core/Services/Infrastructure/MainWindowToolbar.swift +++ b/TablePro/Core/Services/Infrastructure/MainWindowToolbar.swift @@ -34,6 +34,7 @@ internal final class MainWindowToolbar: NSObject, NSToolbarDelegate { self.managedToolbar.displayMode = .iconOnly self.managedToolbar.allowsUserCustomization = true self.managedToolbar.autosavesConfiguration = true + self.managedToolbar.centeredItemIdentifiers = [Self.principal] } func invalidate() { @@ -77,7 +78,6 @@ internal final class MainWindowToolbar: NSObject, NSToolbarDelegate { .sidebarTrackingSeparator, Self.connectionGroup, Self.refreshSaveGroup, - .flexibleSpace, Self.principal, .flexibleSpace, Self.quickSwitcher,