feat: settings risk sections as 2x2 nested subcards
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2201,6 +2201,38 @@ html[data-theme="light"] .journal-detail-img-thumb {
|
|||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.settings-risk-sections {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
|
gap: 12px;
|
||||||
|
margin-top: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings-subcard {
|
||||||
|
padding: 12px 14px;
|
||||||
|
min-width: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings-subcard-title {
|
||||||
|
margin: 0 0 10px;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #cfd3ef;
|
||||||
|
}
|
||||||
|
|
||||||
|
.settings-kv--compact .settings-kv-row {
|
||||||
|
grid-template-columns: 8.5em 1fr;
|
||||||
|
padding: 5px 0;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 720px) {
|
||||||
|
.settings-risk-sections {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.settings-section {
|
.settings-section {
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
@@ -2282,6 +2314,7 @@ html[data-theme="light"] .settings-section {
|
|||||||
border-top-color: #d0dae4;
|
border-top-color: #d0dae4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html[data-theme="light"] .settings-subcard-title,
|
||||||
html[data-theme="light"] .settings-section h3,
|
html[data-theme="light"] .settings-section h3,
|
||||||
html[data-theme="light"] .settings-kv-value {
|
html[data-theme="light"] .settings-kv-value {
|
||||||
color: #142232;
|
color: #142232;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<link rel="stylesheet" href="/static/instance_theme_early.css?v=4">
|
<link rel="stylesheet" href="/static/instance_theme_early.css?v=4">
|
||||||
<link rel="stylesheet" href="/static/account_risk_badge.css?v=4">
|
<link rel="stylesheet" href="/static/account_risk_badge.css?v=4">
|
||||||
<link rel="stylesheet" href="/static/instance_page.css?v=3">
|
<link rel="stylesheet" href="/static/instance_page.css?v=3">
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=58">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=59">
|
||||||
<script src="/static/account_risk_badge.js?v=4"></script>
|
<script src="/static/account_risk_badge.js?v=4"></script>
|
||||||
<meta name="theme-color" content="#0b0d14">
|
<meta name="theme-color" content="#0b0d14">
|
||||||
<title>{{ exchange_display }} · 加密货币 | 交易监控复盘系统</title>
|
<title>{{ exchange_display }} · 加密货币 | 交易监控复盘系统</title>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<link rel="manifest" href="/static/icons/manifest.webmanifest">
|
<link rel="manifest" href="/static/icons/manifest.webmanifest">
|
||||||
<title>{{ exchange_display }} · 加密货币 | 交易监控复盘系统</title>
|
<title>{{ exchange_display }} · 加密货币 | 交易监控复盘系统</title>
|
||||||
<link rel="stylesheet" href="/static/instance_page.css?v=1">
|
<link rel="stylesheet" href="/static/instance_page.css?v=1">
|
||||||
<link rel="stylesheet" href="/static/instance_theme.css?v=58">
|
<link rel="stylesheet" href="/static/instance_theme.css?v=59">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body
|
<body
|
||||||
|
|||||||
@@ -16,10 +16,11 @@
|
|||||||
<p class="settings-policy-note">账户限制:{{ instance_settings.trade_policy_note }}</p>
|
<p class="settings-policy-note">账户限制:{{ instance_settings.trade_policy_note }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class="settings-env-hint">以下参数读取自本实例 <code>.env</code>,修改后需重启进程生效。</p>
|
<p class="settings-env-hint">以下参数读取自本实例 <code>.env</code>,修改后需重启进程生效。</p>
|
||||||
|
<div class="settings-risk-sections">
|
||||||
{% for section in instance_settings.sections %}
|
{% for section in instance_settings.sections %}
|
||||||
<div class="settings-section">
|
<div class="card settings-subcard">
|
||||||
<h3>{{ section.title }}</h3>
|
<h3 class="settings-subcard-title">{{ section.title }}</h3>
|
||||||
<dl class="settings-kv">
|
<dl class="settings-kv settings-kv--compact">
|
||||||
{% for row in section.rows %}
|
{% for row in section.rows %}
|
||||||
<div class="settings-kv-row">
|
<div class="settings-kv-row">
|
||||||
<dt>{{ row.label }}</dt>
|
<dt>{{ row.label }}</dt>
|
||||||
@@ -35,6 +36,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="settings-side-col">
|
<div class="settings-side-col">
|
||||||
{% if instance_settings.show_transfer %}
|
{% if instance_settings.show_transfer %}
|
||||||
|
|||||||
Reference in New Issue
Block a user