diff --git a/src/App.tsx b/src/App.tsx index 2062a3c..3293d3b 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -49,6 +49,19 @@ const MedPlanAssistant = () => { setShowDisclaimer(true); }; + // Use shorter button labels on narrow screens to keep the pin control visible + const [useCompactButtons, setUseCompactButtons] = React.useState(false); + + React.useEffect(() => { + const updateCompact = () => { + setUseCompactButtons(window.innerWidth < 520); // tweakable threshold + }; + + updateCompact(); + window.addEventListener('resize', updateCompact); + return () => window.removeEventListener('resize', updateCompact); + }, []); + const { appState, updateNestedState, @@ -113,19 +126,19 @@ const MedPlanAssistant = () => { {/* Both Columns - Chart */}
-
-
+
+