From 13b03ed750157f9c55c67417c04f9ba8182aadbd Mon Sep 17 00:00:00 2001 From: dekun Date: Wed, 12 Aug 2026 19:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AE=9E=E7=9B=98/=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E4=BD=8D=E8=A1=A8=E5=8D=95=E5=B8=83=E5=B1=80=EF=BC=9A?= =?UTF-8?q?=E5=BC=80=E4=BB=93=E6=8C=89=E9=92=AE=E8=B7=9F=E7=9B=88=E4=BA=8F?= =?UTF-8?q?=E6=AF=94=E3=80=81=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE=E5=90=8C?= =?UTF-8?q?=E8=A1=8C=EF=BC=9B=E6=88=90=E4=BA=A4=E4=BB=B7=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E7=A7=BB=E5=85=A5=E5=BC=80=E4=BB=93=E8=A7=84=E5=88=99=EF=BC=9B?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A4=9A=E5=91=A8=E6=9C=9FK=E7=BA=BF?= =?UTF-8?q?=E5=8B=BE=E9=80=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- lib/common/static/instance_page.css | 10 +++++++++- lib/instance/templates/embed_shell.html | 4 ++-- lib/instance/templates/index.html | 4 ++-- .../templates/order_monitor_open_form.html | 20 ++++++------------- lib/strategy/templates/key_monitor_panel.html | 4 ++-- .../order_monitor_rule_tips_binance.html | 2 +- .../order_monitor_rule_tips_gate.html | 2 +- .../order_monitor_rule_tips_gate_bot.html | 2 +- .../order_monitor_rule_tips_okx.html | 2 +- 9 files changed, 25 insertions(+), 25 deletions(-) diff --git a/lib/common/static/instance_page.css b/lib/common/static/instance_page.css index c0db29f..476d4da 100644 --- a/lib/common/static/instance_page.css +++ b/lib/common/static/instance_page.css @@ -32,12 +32,20 @@ .order-monitor-form .om-field-lab{font-size:.72rem;color:#9aa3c7;line-height:1;letter-spacing:.02em} .order-monitor-form .om-field input{width:9.5rem;max-width:160px;box-sizing:border-box} .order-monitor-form .om-live-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:2px;margin-left:auto} + .order-monitor-form .om-row-levels .om-submit{align-self:flex-end;min-width:11rem;padding:10px 18px;font-weight:600;flex:0 0 auto} + .order-monitor-form .om-row-levels .om-open-block-note{align-self:center;padding-bottom:2px} .order-monitor-form .om-row-opts{align-items:center;gap:12px;padding-top:2px} .order-monitor-form .om-check{display:inline-flex;align-items:center;gap:5px;font-size:.82rem;color:#cfd3ef;cursor:pointer;user-select:none} .order-monitor-form .om-time-close{display:inline-flex;align-items:center;gap:6px;font-size:.82rem;color:#cfd3ef} .order-monitor-form .om-time-close select{width:auto;min-width:4.2rem;max-width:5.5rem;padding:6px 8px} - .order-monitor-form .om-row-action{padding-top:2px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px} .order-monitor-form .om-submit{min-width:11rem;padding:10px 18px;font-weight:600} + /* 关键位监控:主字段与添加按钮尽量同一行 */ + #key-form.key-form-inline{flex-wrap:nowrap;overflow-x:auto;align-items:center;gap:8px} + #key-form.key-form-inline > input:not([type=checkbox]):not([type=radio]), + #key-form.key-form-inline > select{flex:0 0 auto;width:8.5rem;min-width:6.5rem;max-width:10rem} + #key-form.key-form-inline .trade-policy-symbol-select, + #key-form.key-form-inline #key-type-select{width:9rem;max-width:11rem} + #key-form.key-form-inline .key-form-add-btn{flex:0 0 auto;white-space:nowrap;padding:8px 14px} .order-monitor-form .om-submit.is-blocked, .order-monitor-form .om-submit:disabled{ opacity:.45; diff --git a/lib/instance/templates/embed_shell.html b/lib/instance/templates/embed_shell.html index da4955d..9c6ff2b 100644 --- a/lib/instance/templates/embed_shell.html +++ b/lib/instance/templates/embed_shell.html @@ -7,8 +7,8 @@ - - + + diff --git a/lib/instance/templates/index.html b/lib/instance/templates/index.html index 3354750..88d3d94 100644 --- a/lib/instance/templates/index.html +++ b/lib/instance/templates/index.html @@ -18,8 +18,8 @@ {{ pwa_app_name }} - - + + 盈亏比 + + {% if not can_trade and (open_block_note|default('')) %}{{ open_block_note }}{% endif %}