From 91272df67b8cc05e2d48e182beaeab13aaa6123b Mon Sep 17 00:00:00 2001 From: PavelMakarchuk Date: Mon, 23 Mar 2026 12:16:25 -0400 Subject: [PATCH] Fix mobile home and analyzer layouts --- src/App.jsx | 41 +++--- src/components/Breadcrumb.jsx | 2 +- src/components/StatePanel.jsx | 8 +- src/components/StateSearchCombobox.jsx | 4 +- src/components/USMap.jsx | 2 + src/components/reform/AggregateImpacts.jsx | 15 +-- src/components/reform/AggregateStats.jsx | 2 +- src/components/reform/ReformAnalyzer.jsx | 15 ++- src/components/reform/ResultsDisplay.jsx | 2 +- src/index.css | 148 ++++++++++++++++++++- 10 files changed, 190 insertions(+), 49 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index a40d77b..7eccc09 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -107,7 +107,7 @@ function App() { const isStatePage = selectedState && !isBillPage; return ( -
+
{/* Header */}
-
-
-
+ - {/* Two-column layout: Map + sidebar */} -
- {/* Left column: Map + chips + quick links */}
- {/* Map */}
-
+
- {/* Legend */} -
- {/* State chips by region */} {activeStates.length > 0 && (
- {/* Quick Links */} -
+ +
+ +
- {/* Right column: Recent Activity */} -
+
@@ -338,7 +333,7 @@ function App() { height: "3px", background: "linear-gradient(90deg, #2C7A7B 0%, #38B2AC 50%, #0EA5E9 100%)", }} /> -
© {new Date().getFullYear()} PolicyEngine. Open-source tax and benefit policy simulation.

-
+
GitHub PolicyEngine.org
@@ -429,7 +424,7 @@ function RegionChips({ states, onSelect }) { .filter((r) => r.states.length > 0); return ( -
( export default function Breadcrumb({ stateAbbr, billLabel, onNavigateHome, onNavigateState }) { const onBack = billLabel ? onNavigateState : onNavigateHome; return ( -