diff --git a/templates/base.html b/templates/base.html index 5eaccc2..d20424f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -23,7 +23,15 @@ .card{background:#12121a;border-radius:16px;padding:1.5rem;border:1px solid #242435;margin-bottom:1.5rem} .card h2{font-size:1.15rem;margin-bottom:1rem;color:#c4c4ff;display:flex;align-items:center;gap:.5rem} .card h2:before{content:"";width:4px;height:16px;background:#4cc2ff;border-radius:2px} - .form-row{display:flex;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem;align-items:flex-start} + .form-row{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem;align-items:center} + .form-compact{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem} + .form-compact .form-line{display:grid;gap:.5rem;align-items:center} + .form-compact .line-3{grid-template-columns:repeat(3,1fr)} + .form-compact .line-4{grid-template-columns:repeat(4,1fr)} + .form-compact .line-btn{display:flex;gap:.5rem;align-items:center} + .form-compact input,.form-compact select{padding:.55rem .7rem;font-size:.85rem;border-radius:8px} + .form-compact .symbol-selected{font-size:.7rem;margin-top:2px} + .form-compact button.btn-primary{padding:.55rem 1.5rem;font-size:.85rem;white-space:nowrap} .form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;margin-bottom:1rem} .form-grid .full{grid-column:1/-1} .field label{display:block;font-size:.8rem;color:#a9a9ff;margin-bottom:.35rem} @@ -64,7 +72,7 @@ .filter-row .field{width:auto;min-width:140px} .filter-row button{width:auto} .split-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;align-items:stretch;margin-bottom:1.5rem} - .split-grid .card{margin-bottom:0;height:100%;min-height:560px;display:flex;flex-direction:column} + .split-grid .card{margin-bottom:0;height:100%;min-height:480px;display:flex;flex-direction:column} .split-grid .card-body{flex:1;overflow:auto} .card-scroll{max-height:420px;overflow-y:auto} .preset-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem} diff --git a/templates/keys.html b/templates/keys.html index c09a2a1..b30addd 100644 --- a/templates/keys.html +++ b/templates/keys.html @@ -7,44 +7,48 @@

新增监控

-
-
- - - - - -
-
+ +
+
+ + + + + +
+
+
+ + +
+
+ + +
- - - - - -

监控列表

+

监控列表

{% for k in keys %} -
+
- {{ k.symbol_name or k.symbol }} | {{ k.monitor_type }} - {{ '做多' if k.direction == 'long' else '做空' }} + {{ k.symbol_name or k.symbol }} {{ k.monitor_type }} + {{ '多' if k.direction == 'long' else '空' }}
-
上 {{ k.upper }} | 下 {{ k.lower }}
- 删除 +
上{{ k.upper }} 下{{ k.lower }}
+
{% else %} -
暂无监控
+
暂无监控
{% endfor %}
@@ -54,7 +58,7 @@

监控历史

- + {% for k in history %} diff --git a/templates/plans.html b/templates/plans.html index e9d6bea..483bdf2 100644 --- a/templates/plans.html +++ b/templates/plans.html @@ -7,43 +7,49 @@

今日计划

-

开盘前制定,当日有效;下方为进行中计划。

-
-
- - - - - -
-
+

开盘前制定,当日有效;下方为进行中计划。

+ +
+
+ + + + + +
+
+
+ + +
+
+ + + +
+
+
- - - - - - -

进行中

+

进行中

{% for p in plans %} -
+
{{ p.symbol_name or p.symbol }} - {{ '做多' if p.direction == 'long' else '做空' }} + {{ '多' if p.direction == 'long' else '空' }} {% if p.status == 'planned' %}待触发 {% else %}已激活{% endif %}
-
区间 {{ p.zone_lower }}~{{ p.zone_upper }} | 损{{ p.stop_loss }} 盈{{ p.take_profit }}
- 删除 +
{{ p.zone_lower }}~{{ p.zone_upper }} 损{{ p.stop_loss }} 盈{{ p.take_profit }}
+
{% else %} -
今日暂无进行中的计划
+
今日暂无进行中的计划
{% endfor %}
品种类型方向上沿下沿归档时间
品种类型方向上沿下沿归档