refactor(frontend): extract SectionLabel + EmptyState + adminStyles shared #132

Merged
lekss361 merged 3 commits from refactor/frontend-ui-shared-129 into main 2026-05-14 20:55:38 +00:00
Showing only changes of commit 96fc007609 - Show all commits

View file

@ -1,3 +1,17 @@
/**
* Shared inline styles для admin pages.
*
* **Divergent local overrides НЕ унифицировать:**
* - `frontend/src/app/admin/leads/page.tsx` local `th` (padding "10px 12px",
* color "#374151"), local `td` (verticalAlign "top"), local `inputStyle`
* (fontSize 13, minWidth 160). Cause: разная плотность UI на leads dashboard.
* - `frontend/src/components/admin/BulkGeoPanel.tsx` local `labelStyle` без
* `display: block` и `marginBottom`. Cause: labels на <span> внутри строки,
* block-display и margin сломали бы inline layout.
*
* При добавлении новой admin page сначала проверь что shared values fit
* перед introducing local override.
*/
import type { CSSProperties } from "react";
export const cardStyle: CSSProperties = {