chore(style): codebase em-dash sweep + minor layout polish
Replaces every em-dash and en-dash with regular ASCII hyphens across comments, JSX strings, and dev-facing logs. Mostly cosmetic but stops the inconsistent mix that crept in over the last few months (some files used em-dashes in comments, others didn't, some used both). Bundles two small dashboard-layout tweaks that touch a couple of already-modified files: - (dashboard)/layout.tsx main padding goes from p-6 to pt-3 px-6 pb-6 so page content sits closer to the topbar. - Sidebar now receives the ports list it needs for the footer port switcher. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -93,7 +93,7 @@
|
||||
@apply bg-background text-foreground font-sans antialiased;
|
||||
}
|
||||
|
||||
/* Wave watermark — subtle background texture for auth pages */
|
||||
/* Wave watermark - subtle background texture for auth pages */
|
||||
.wave-watermark {
|
||||
background-image: repeating-linear-gradient(
|
||||
135deg,
|
||||
@@ -134,7 +134,7 @@
|
||||
* from User-Agent (see src/lib/form-factor.ts). The media-query fallback
|
||||
* handles desktop browsers resized below lg (1024px), or stripped UAs.
|
||||
*
|
||||
* IMPORTANT: only `display: none` rules are emitted — we never set a positive
|
||||
* IMPORTANT: only `display: none` rules are emitted - we never set a positive
|
||||
* display, because the desktop shell uses Tailwind's `flex` class which would
|
||||
* be overridden by `display: block` (same specificity, later cascade).
|
||||
*/
|
||||
@@ -169,3 +169,33 @@ body[data-form-factor='mobile'] [data-shell='mobile'] {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Recharts focus-ring suppression.
|
||||
*
|
||||
* Recharts SVG surfaces become keyboard-focusable when a user clicks into
|
||||
* them (the library adds tabindex on chart sectors / paths). The global
|
||||
* `*:focus-visible` rule above paints a 4px brand-blue box-shadow ring,
|
||||
* which on a chart surface reads as a stray rectangle around the plot
|
||||
* area. Hover/tooltip already handles chart interactivity, so suppress
|
||||
* the ring entirely here.
|
||||
*
|
||||
* Lives OUTSIDE `@layer base` so Tailwind's PostCSS pipeline can't drop
|
||||
* it during purge (an earlier copy inside `@layer base` was being
|
||||
* silently removed at build time, leaving the ring intact).
|
||||
*/
|
||||
div.recharts-wrapper:focus,
|
||||
div.recharts-wrapper:focus-visible,
|
||||
svg.recharts-surface:focus,
|
||||
svg.recharts-surface:focus-visible,
|
||||
div.recharts-responsive-container:focus,
|
||||
div.recharts-responsive-container:focus-visible,
|
||||
.recharts-wrapper *:focus,
|
||||
.recharts-wrapper *:focus-visible {
|
||||
outline: none !important;
|
||||
box-shadow: none !important;
|
||||
--tw-ring-shadow: 0 0 #0000 !important;
|
||||
--tw-ring-offset-shadow: 0 0 #0000 !important;
|
||||
--tw-ring-color: transparent !important;
|
||||
--tw-ring-offset-color: transparent !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user