From 7559a2bfb572448e9259767dc91ea89f5c28b3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Forment?= Date: Mon, 6 Oct 2025 11:11:10 +0200 Subject: [PATCH] progress on responsive --- src/App.tsx | 34 +++++++++++++++---------------- src/components/EffectsBar.tsx | 20 ++++++++++++------ src/components/EngineControls.tsx | 6 +++--- src/components/LFOPanel.tsx | 2 +- 4 files changed, 35 insertions(+), 27 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e39dd75f..d658e3bc 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -541,16 +541,16 @@ function App() {
{showWarning && } {showHelp && setShowHelp(false)} />} -
-
-
+
+
+

setShowHelp(true)} className="font-mono text-[10px] md:text-sm tracking-[0.3em] text-white flex-shrink-0 cursor-pointer hover:opacity-70 transition-opacity" > BRUITISTE

-
+
-
+
-
+
@@ -625,8 +625,8 @@ function App() {
-
-
+
+
-
+
{tiles.map((row, i) => row.map((tile, j) => { const id = getTileId(i, j) diff --git a/src/components/EffectsBar.tsx b/src/components/EffectsBar.tsx index 135de3a1..67a31ecf 100644 --- a/src/components/EffectsBar.tsx +++ b/src/components/EffectsBar.tsx @@ -16,6 +16,7 @@ interface EffectsBarProps { export function EffectsBar({ values, onChange, onMapClick, getMappedLFOs }: EffectsBarProps) { const [expandedEffect, setExpandedEffect] = useState(null) const [activeTab, setActiveTab] = useState(EFFECTS[0].id) + const [isCollapsed, setIsCollapsed] = useState(false) const randomizeEffect = (effect: typeof EFFECTS[number]) => { effect.parameters.forEach(param => { if (param.id.endsWith('Enable')) return @@ -34,9 +35,9 @@ export function EffectsBar({ values, onChange, onMapClick, getMappedLFOs }: Effe } return ( -
+
{/* Desktop: Grid layout */} -
+
{EFFECTS.map(effect => { return (
@@ -117,14 +118,21 @@ export function EffectsBar({ values, onChange, onMapClick, getMappedLFOs }: Effe
{/* Mobile: Tabbed layout */} -
+
{EFFECTS.map(effect => ( ))}
- {EFFECTS.map(effect => { + {!isCollapsed && EFFECTS.map(effect => { if (activeTab !== effect.id) return null return (
diff --git a/src/components/EngineControls.tsx b/src/components/EngineControls.tsx index f53f8e3c..ec604d93 100644 --- a/src/components/EngineControls.tsx +++ b/src/components/EngineControls.tsx @@ -55,12 +55,12 @@ export function EngineControls({ values, onChange, onMapClick, getMappedLFOs }: } return ( -
+
-
diff --git a/src/components/LFOPanel.tsx b/src/components/LFOPanel.tsx index c1878b6e..3338bae7 100644 --- a/src/components/LFOPanel.tsx +++ b/src/components/LFOPanel.tsx @@ -36,7 +36,7 @@ export function LFOPanel({ onChange, onUpdateDepth, onRemoveMapping }: LFOPanelP return (
-
+
{lfoConfigs.map(({ key, index }) => { const lfo = lfoValues[key] return (