mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 19:45:34 +08:00
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:
+9
-8
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user