fix run id text overflow issue

This commit is contained in:
c9s 2022-05-19 01:07:08 +08:00
parent bff06e81f6
commit 2bc78b1481
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54
2 changed files with 7 additions and 2 deletions

View File

@ -38,14 +38,13 @@ const ReportDetails = (props: ReportDetailsProps) => {
}
return <div>
<Title order={2}>Back-test Run {props.runID}</Title>
<Title order={2}>RUN {props.runID}</Title>
<div>
{
reportSummary.symbols.map((symbol: string, i : number) => {
return <TradingViewChart key={i} basePath={props.basePath} runID={props.runID} reportSummary={reportSummary} symbol={symbol} intervals={["1m", "5m", "1h"]}/>
})
}
</div>
</div>;
};

View File

@ -59,7 +59,13 @@ const ReportNavigator = (props: ReportNavigatorProps) => {
props.onSelect(entry);
}
}}>
<div style={{
"textOverflow": "ellipsis",
"overflow": "hidden",
"inlineSize": "190px",
}}>
{entry.id}
</div>
</List.Item>
})
}