From 3a68d7dabcd67ba1f2737d142562f4508653a9d9 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Sat, 28 Feb 2026 18:53:16 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20restore=20dashboard=20layout=20=E2=80=94?= =?UTF-8?q?=20Tailwind=20v4=20@source=20for=20route=20groups?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tailwind CSS v4 auto-detection failed to scan Next.js route group directories with parentheses (e.g. '(dashboard)'), causing responsive grid utilities to be purged from production CSS. Added explicit @source directives in globals.css to fix the content scanning. CSS output: 10KB (broken) → 110KB (correct), 12 media queries restored. --- CHANGELOG.md | 8 ++++++++ package-lock.json | 4 ++-- package.json | 2 +- src/app/globals.css | 6 ++++++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c06cc31aa..210e01bd4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- +## [1.7.1] — 2026-02-28 + +### 🐛 Fixed + +- **Dashboard Layout Breakage** — Tailwind CSS v4 auto-detection failed to scan Next.js route group directories with parentheses (e.g. `(dashboard)`), causing all responsive grid utilities (`sm:grid-cols-*`, `md:grid-cols-*`, `lg:grid-cols-*`, `xl:grid-cols-*`) to be purged from production CSS. Cards displayed in a single column instead of multi-column grids. Fixed by adding explicit `@source` directives in `globals.css` + +--- + ## [1.7.0] — 2026-02-28 ### ✨ New Features diff --git a/package-lock.json b/package-lock.json index 7dba953b5f..0de66b3f95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "omniroute", - "version": "1.6.4", + "version": "1.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "omniroute", - "version": "1.6.4", + "version": "1.7.0", "hasInstallScript": true, "license": "MIT", "workspaces": [ diff --git a/package.json b/package.json index e3aba3705c..e0937b8379 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "omniroute", - "version": "1.7.0", + "version": "1.7.1", "description": "Smart AI Router with auto fallback — route to FREE & cheap models, zero downtime. Works with Cursor, Cline, Claude Desktop, Codex, and any OpenAI-compatible tool.", "type": "module", "bin": { diff --git a/src/app/globals.css b/src/app/globals.css index 0d4480a029..494ab433db 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,6 +1,12 @@ @import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap"); @import "tailwindcss"; +/* Tailwind v4 auto-detection cannot scan directories with parentheses + (e.g. Next.js route groups like "(dashboard)"). Explicit @source + directives ensure all utility classes in route groups are included. */ +@source "../app/(dashboard)"; +@source "../../open-sse"; + @custom-variant dark (&:where(.dark, .dark *)); /* OpenClaw × ClawHub Color Palette */