mirror of
https://github.com/certimate-go/certimate.git
synced 2026-06-22 21:05:48 +08:00
fix(ui): system logs overflow
This commit is contained in:
parent
a5ae2fcdb9
commit
4ad5ad40c2
@ -215,11 +215,10 @@ const WorkflowRunLogs = ({ runId, runStatus }: { runId: string; runStatus: strin
|
||||
|
||||
return (
|
||||
<div className="flex space-x-2" style={{ wordBreak: "break-word" }}>
|
||||
{showTimestamp ? <div className="font-mono text-stone-400">[{dayjs(record.timestamp).format("YYYY-MM-DD HH:mm:ss")}]</div> : <></>}
|
||||
{showTimestamp ? <div className="font-mono whitespace-nowrap text-stone-400">[{dayjs(record.timestamp).format("YYYY-MM-DD HH:mm:ss")}]</div> : <></>}
|
||||
<div
|
||||
className={mergeCls(
|
||||
"flex-1",
|
||||
"font-mono",
|
||||
"flex-1 font-mono",
|
||||
{ ["whitespace-pre-line"]: !showWhitespace },
|
||||
record.level < WorkflowLogLevel.Info
|
||||
? "text-stone-400"
|
||||
|
||||
@ -77,7 +77,7 @@ const Settings = () => {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex-1">
|
||||
<div className="w-full flex-1">
|
||||
<div className="px-4 max-lg:px-0 max-lg:py-6">
|
||||
<Outlet />
|
||||
</div>
|
||||
|
||||
@ -91,11 +91,10 @@ const SettingsDiagnosticsLogs = ({ className, style }: { className?: string; sty
|
||||
|
||||
return (
|
||||
<div className="flex space-x-2">
|
||||
<div className="font-mono text-stone-400">[{dayjs(record.created).format("YYYY-MM-DD HH:mm:ss")}]</div>
|
||||
<div className="font-mono whitespace-nowrap text-stone-400">[{dayjs(record.created).format("YYYY-MM-DD HH:mm:ss")}]</div>
|
||||
<div
|
||||
className={mergeCls(
|
||||
"flex-1",
|
||||
"font-mono",
|
||||
"flex-1 font-mono",
|
||||
+record.level < LogLevel.Info
|
||||
? "text-stone-400"
|
||||
: +record.level < LogLevel.Warn
|
||||
|
||||
Loading…
Reference in New Issue
Block a user