feat: home pages adapted to mobile

This commit is contained in:
Lucas
2026-10-26 14:25:56 +01:00
parent 631a66ceb5
commit cb34e5ef41
50 changed files with 1219 additions and 7 deletions
+3 -1
View File
@@ -13,6 +13,7 @@ import { removeDSP } from './dsp/dspShared';
import { stopAllPolling } from './dsp/pollRegistry';
import { loadSavedDSPs, saveDSPs, toSaved } from './dsp/dspStorage';
import { DSPMode } from './features/dsp408/types';
import { useIsMobile } from './hooks/useIsMobile';
function App() {
const [dsps, setDsps] = useState<DSP[]>([]);
@@ -22,6 +23,7 @@ function App() {
const { notifications, notify, removeNotification, hoverNotification } = useNotifications();
const connectedDspCount = dsps.filter((dsp) => isConnected(dsp)).length;
const restoreStarted = useRef(false);
const isMobile = useIsMobile();
const activeDsp = dsps.find((d) => d.id === selected) ?? null;
const activeInstance = activeDsp ? createDSPInstance(activeDsp, setDsps, notify) : null;
@@ -70,7 +72,7 @@ function App() {
}, [activeDsp?.id]);
return (
<div className="app">
<div className={`app${isMobile ? ' app--mobile' : ''}`}>
<Notifications
notifications={notifications}
onRemove={removeNotification}