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
This commit is contained in:
2025-07-08 03:02:24 +08:00
parent c57f52ea74
commit 2834b7fe57
4 changed files with 52 additions and 30 deletions

View File

@@ -81,7 +81,7 @@ function App() {
</div>
{/* Main Content with top padding to account for fixed navbar */}
<main class="container mx-auto p-4 pt-20">
<main class="container mx-auto px-2 sm:px-4 py-4 pt-20 max-w-full overflow-x-auto">
<Routes>
<Route path="/info" component={InfoIndex} />
<Route path="/displays" component={DisplayStateIndex} />