feat(profiles): add setting to toggle project switcher on main page

Add a show/hide toggle for the header project profile switcher under
the Homepage Display section in settings. Defaults to visible so
existing users keep the current behavior.
This commit is contained in:
Jason
2026-07-10 11:04:59 +08:00
parent 7479d10db7
commit 442799879d
8 changed files with 40 additions and 12 deletions
+9 -8
View File
@@ -1263,14 +1263,15 @@ function App() {
)}
</div>
)}
{currentView === "providers" && (
<div
className="flex shrink-0 items-center"
style={{ WebkitAppRegion: "no-drag" } as any}
>
<ProfileSwitcher activeApp={activeApp} />
</div>
)}
{currentView === "providers" &&
(settingsData?.showProfileSwitcher ?? true) && (
<div
className="flex shrink-0 items-center"
style={{ WebkitAppRegion: "no-drag" } as any}
>
<ProfileSwitcher activeApp={activeApp} />
</div>
)}
<div
ref={toolbarRef}
className="flex flex-1 min-w-0 overflow-x-hidden items-center py-4 pr-2"