style(mui): DataTable bold-cell option; restore SPZ/Aktualni-km emphasis + mono Menlo fallback

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-06 20:50:38 +02:00
parent c550763f2a
commit 645d0127ec
2 changed files with 8 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ export interface DataColumn<T> {
align?: "left" | "right";
/** Render the cell with the DM Mono numeric face. */
mono?: boolean;
/** Emphasize the cell (font-weight 500). */
bold?: boolean;
render: (row: T) => ReactNode;
}
@@ -67,7 +69,10 @@ export default function DataTable<T>({
align={c.align}
sx={{
fontSize: ".8rem",
...(c.mono ? { fontFamily: "'DM Mono', monospace" } : {}),
...(c.bold ? { fontWeight: 500 } : {}),
...(c.mono
? { fontFamily: "'DM Mono', Menlo, monospace" }
: {}),
}}
>
{c.render(row)}