From 5171f84b1ba18fc3f94c6bb66d708635c431c53d Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 27 May 2024 13:13:32 -0700 Subject: [PATCH] Update main.tsx --- src/components/main.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/main.tsx b/src/components/main.tsx index 060a49a..48b3f7d 100644 --- a/src/components/main.tsx +++ b/src/components/main.tsx @@ -62,7 +62,7 @@ export default function MainComponent() { const [chartData, setChartData] = useState(initialData); const [xName, setXName] = useState("Date"); const [yName, setYName] = useState("Stars"); - const [padding, setPadding] = useState(32); + const [padding, setPadding] = useState(window.innerWidth < 450 ? 16 : 32); const [width, setWidth] = useState("400"); const [theme, setTheme] = useState( () => allThemes["firecrawl"] as Theme @@ -199,7 +199,11 @@ export default function MainComponent() { openCsv={openCsv} setOpenCsv={setOpenCsv} /> -
+
Made by{" "}