feat(app-switcher): add compact mode for takeover with 3+ visible apps

This commit is contained in:
Jason
2026-01-20 22:02:13 +08:00
parent c9e85e8cac
commit 4496110dd8
2 changed files with 9 additions and 8 deletions
+6 -1
View File
@@ -889,7 +889,12 @@ function App() {
</>
)}
<AppSwitcher activeApp={activeApp} onSwitch={setActiveApp} visibleApps={visibleApps} />
<AppSwitcher
activeApp={activeApp}
onSwitch={setActiveApp}
visibleApps={visibleApps}
compact={isCurrentAppTakeoverActive && Object.values(visibleApps).filter(Boolean).length >= 3}
/>
<div className="flex items-center gap-1 p-1 bg-muted rounded-xl">
<Button