Skip to content

Commit df8b444

Browse files
Pigbibicursoragent
andcommitted
Put min reserved cash and reserve ratio on one row again.
Wrap the floor and ratio inputs in a two-column reserve-amounts-row inside the right reserve policy stack. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2e4b515 commit df8b444

3 files changed

Lines changed: 27 additions & 12 deletions

File tree

tests/strategy_switch_worker_validation.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ assert.ok(indexHtml.includes('id="income-layer-section"'));
4747
assert.ok(indexHtml.includes('id="option-overlay-section"'));
4848
assert.ok(indexHtml.includes('id="reserve-policy-stack"'));
4949
assert.ok(indexHtml.includes('class="reserve-policy-stack"'));
50+
assert.ok(indexHtml.includes('id="reserve-amounts-row"'));
51+
assert.ok(indexHtml.includes('class="reserve-amounts-row"'));
5052
assert.equal(indexHtml.includes('id="margin-policy-stack"'), false);
5153
assert.ok(indexHtml.includes("cash_only_execution_mode: item.cash_only_execution_mode"));
5254
assert.ok(indexHtml.includes("function incomeLayerFieldsConfigured("));

web/strategy-switch-console/index.html

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,13 @@
352352
min-width: 0;
353353
}
354354

355+
.reserve-amounts-row {
356+
display: grid;
357+
grid-template-columns: repeat(2, minmax(0, 1fr));
358+
gap: 14px;
359+
min-width: 0;
360+
}
361+
355362
.reserve-policy-stack.policy-stack-muted {
356363
opacity: 0.58;
357364
}
@@ -364,6 +371,10 @@
364371
.execution-cash-policy-grid {
365372
grid-template-columns: 1fr;
366373
}
374+
375+
.reserve-amounts-row {
376+
grid-template-columns: 1fr;
377+
}
367378
}
368379

369380
.mark {
@@ -1439,17 +1450,19 @@ <h3 class="execution-cash-policy-heading" data-i18n="executionCashPolicyTitle">
14391450
<span class="selection-meta" id="reserve-policy-mode-meta" data-i18n="reservedCashModeMeta">选择是否沿用、清空或覆盖平台预留现金。</span>
14401451
</label>
14411452

1442-
<label class="control-block min-reserve-block policy-block" id="min-reserve-block">
1443-
<span id="min-reserved-cash-label">最小预留现金</span>
1444-
<input id="min-reserved-cash-input" type="number" inputmode="decimal" min="0" step="1">
1445-
<span class="selection-meta" data-i18n="reservedCashMeta">固定金额下限,可单独设置或与比例取较大值。</span>
1446-
</label>
1447-
1448-
<label class="control-block reserve-ratio-block policy-block" id="reserve-ratio-block">
1449-
<span data-i18n="reservedCashRatio">预留现金比例</span>
1450-
<input id="reserved-cash-ratio-input" type="number" inputmode="decimal" min="0" max="1" step="0.01">
1451-
<span class="selection-meta" data-i18n="reservedCashRatioMeta">例如 0.03 表示 3%。</span>
1452-
</label>
1453+
<div class="reserve-amounts-row" id="reserve-amounts-row">
1454+
<label class="control-block min-reserve-block policy-block" id="min-reserve-block">
1455+
<span id="min-reserved-cash-label">最小预留现金</span>
1456+
<input id="min-reserved-cash-input" type="number" inputmode="decimal" min="0" step="1">
1457+
<span class="selection-meta" data-i18n="reservedCashMeta">固定金额下限,可单独设置或与比例取较大值。</span>
1458+
</label>
1459+
1460+
<label class="control-block reserve-ratio-block policy-block" id="reserve-ratio-block">
1461+
<span data-i18n="reservedCashRatio">预留现金比例</span>
1462+
<input id="reserved-cash-ratio-input" type="number" inputmode="decimal" min="0" max="1" step="0.01">
1463+
<span class="selection-meta" data-i18n="reservedCashRatioMeta">例如 0.03 表示 3%。</span>
1464+
</label>
1465+
</div>
14531466
</div>
14541467
</div>
14551468
</div>

web/strategy-switch-console/page_asset.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)