From bed0942d1244b2391632df26d039aa27d41579a1 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Date: Fri, 27 Mar 2026 20:10:08 +0100 Subject: [PATCH] fix: dashboard layout spacing and CSS cascade layer bug Move CSS reset into @layer base so Tailwind utilities aren't overridden. Fix settings panel: search icon overlap, cramped widget items, spacing between header card and widget grid using inline margin styles. Co-Authored-By: Claude Sonnet 4.6 --- src/app.css | 4 +- src/routes/admin/index.tsx | 95 ++++++++++++++++++++++---------------- 2 files changed, 57 insertions(+), 42 deletions(-) diff --git a/src/app.css b/src/app.css index a5f16e3..a787453 100644 --- a/src/app.css +++ b/src/app.css @@ -21,7 +21,9 @@ --font-family-sans: 'Exo 2', sans-serif; } -* { box-sizing: border-box; margin: 0; padding: 0; } +@layer base { + * { box-sizing: border-box; margin: 0; padding: 0; } +} body { font-family: 'Exo 2', sans-serif; diff --git a/src/routes/admin/index.tsx b/src/routes/admin/index.tsx index 3a642d2..1b773ba 100644 --- a/src/routes/admin/index.tsx +++ b/src/routes/admin/index.tsx @@ -322,18 +322,18 @@ export default function AdminHomePage() { return ( -
-
-
-
-

Dashboard Overview

-

Manage widget layout, visibility, sizing, and dashboard presentation

+
+
+
+
+

Dashboard Overview

+

Manage widget layout, visibility, sizing, and dashboard presentation

-
+
-
- -
-
-
+
+ {/* Settings header */} +
+

Widget Settings

-

Choose visible widgets and select a grid layout.

+

Choose visible widgets and select a grid layout.

-
-