This commit is contained in:
@@ -368,6 +368,8 @@ export function BacktestPage({
|
||||
render: (value, r) => (
|
||||
<Button
|
||||
theme="borderless"
|
||||
className="backtest-name-button"
|
||||
title={String(value)}
|
||||
onClick={() => openRun(r!.backtest_run_id)}
|
||||
>
|
||||
{String(value)}
|
||||
@@ -419,6 +421,8 @@ export function BacktestPage({
|
||||
render: (v, d) => (
|
||||
<Button
|
||||
theme="borderless"
|
||||
className="backtest-name-button"
|
||||
title={String(v)}
|
||||
onClick={() => void perform(() => loadDraft(d!.id))}
|
||||
>
|
||||
{String(v)}
|
||||
|
||||
@@ -86,3 +86,16 @@
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Bound the button and its flex content independently so long names stay in their column. */
|
||||
.backtest-page .backtest-name-button {
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
.backtest-page .backtest-name-button .semi-button-content {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user