From 2834b7fe57b1c5f59cca8fd873fe21ff86c2d724 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Tue, 8 Jul 2025 03:02:24 +0800 Subject: [PATCH] Optimize responsive layout for LED count control interface - Improve grid layout responsiveness from md:grid-cols-2 to lg:grid-cols-2 - Add responsive LED control items with grid-cols-2 sm:grid-cols-4 - Reduce padding and spacing for better small window display - Optimize button and input sizes with compact styling - Add custom CSS for small screen handling (<640px and <600px) - Implement auto-fit grid layout with minmax(280px, 1fr) - Enhance main container with overflow-x-auto and responsive padding - Reduce overall page spacing and card body padding for compact display --- src/App.tsx | 2 +- .../led-count-control-panel.tsx | 22 ++++++------ .../led-strip-configuration.tsx | 34 +++++++++---------- src/styles.css | 24 ++++++++++++- 4 files changed, 52 insertions(+), 30 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1351d7e..8adca6d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -81,7 +81,7 @@ function App() { {/* Main Content with top padding to account for fixed navbar */} -
+
diff --git a/src/components/led-strip-configuration/led-count-control-panel.tsx b/src/components/led-strip-configuration/led-count-control-panel.tsx index deb0cb1..3877120 100644 --- a/src/components/led-strip-configuration/led-count-control-panel.tsx +++ b/src/components/led-strip-configuration/led-count-control-panel.tsx @@ -95,7 +95,7 @@ const LedCountControlItem: Component = (props) => { return (
= (props) => {
-
+