mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-05 00:03:42 +08:00
feat: update log table style
This commit is contained in:
@@ -497,9 +497,7 @@ const LogsTable = () => {
|
|||||||
{isAdminUser && (
|
{isAdminUser && (
|
||||||
<Table.Cell>
|
<Table.Cell>
|
||||||
{log.username ? (
|
{log.username ? (
|
||||||
<Label basic size={'tiny'}>
|
<Label basic>{log.username}</Label>
|
||||||
{log.username}
|
|
||||||
</Label>
|
|
||||||
) : (
|
) : (
|
||||||
''
|
''
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ export function renderColorLabel(text) {
|
|||||||
}
|
}
|
||||||
let index = Math.abs(hash % colors.length);
|
let index = Math.abs(hash % colors.length);
|
||||||
return (
|
return (
|
||||||
<Label basic size={'tiny'} color={colors[index]}>
|
<Label basic color={colors[index]}>
|
||||||
{text}
|
{text}
|
||||||
</Label>
|
</Label>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user