refactor(client): centralise monospace font through the theme
Add a fontFamilyMonospace token to theme.typography (ui-monospace stack with sensible fallbacks) and route the four ad-hoc fontFamily="monospace" call sites through it so the project has one source of truth.
This commit is contained in:
1 parent
82ad40ac82
commit
c6db7e6479
4 files changed
+12
-6
No files matched your search
@@ -55,7 +55,7 @@ export const TableLogs = ({ logs, logCount, page, setPage }: TableLogsProps) =>
|
||||
id: "timestamp",
|
||||
content: t("pages.logs.table.headers.timestamp"),
|
||||
render: (row) => (
|
||||
<Typography sx={{ fontFamily: "monospace" }}>
|
||||
<Typography sx={{ fontFamily: theme.typography.fontFamilyMonospace }}>
|
||||
{formatTimestamp(row.timestamp)}
|
||||
</Typography>
|
||||
),
|
||||
@@ -74,7 +74,9 @@ export const TableLogs = ({ logs, logCount, page, setPage }: TableLogsProps) =>
|
||||
id: "method",
|
||||
content: t("pages.logs.table.headers.method"),
|
||||
render: (row) => (
|
||||
<Typography fontFamily={"monospace"}>{row.method || "-"}</Typography>
|
||||
<Typography fontFamily={theme.typography.fontFamilyMonospace}>
|
||||
{row.method || "-"}
|
||||
</Typography>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user