fix startup timings page (#219)

This commit is contained in:
megumin 2022-11-19 15:52:17 +00:00 committed by GitHub
parent a5154d6283
commit 7ff2d2ba8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ function TimingSection({ title, logs, traceEnd }: TimingSectionProps) {
}); });
return ( return (
<Forms.FormSection title={title} tag={Forms.FormTitle.Tags.H1}> <Forms.FormSection title={title} tag="h1">
<code> <code>
{traceEnd && ( {traceEnd && (
<div style={{ color: "var(--header-primary)", marginBottom: 5, userSelect: "text" }}> <div style={{ color: "var(--header-primary)", marginBottom: 5, userSelect: "text" }}>
@ -118,7 +118,7 @@ function ServerTrace({ trace }: ServerTraceProps) {
const lines = trace.split("\n"); const lines = trace.split("\n");
return ( return (
<Forms.FormSection title="Server Trace" tag={Forms.FormTitle.Tags.H2}> <Forms.FormSection title="Server Trace" tag="h2">
<code> <code>
<Flex flexDirection="column" style={{ color: "var(--header-primary)", gap: 5, userSelect: "text" }}> <Flex flexDirection="column" style={{ color: "var(--header-primary)", gap: 5, userSelect: "text" }}>
{lines.map(line => ( {lines.map(line => (