From a68dc5079850443261b890ea335f448a6d1badcd Mon Sep 17 00:00:00 2001 From: JiuContinent Date: Tue, 27 Oct 2026 16:52:18 +0800 Subject: [PATCH] =?UTF-8?q?```=20refactor(web-ui):=20=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E6=9C=BA=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E7=B4=A7=E5=87=91=E5=8D=95=E5=B1=8F=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除独立页面标题区域,将添加按钮整合至工具栏;将连接 配置与诊断标签页提升至抽屉头部,设备名称与启用开关合并 为同一行;串口/网络字段采用双列网格布局。精简脚注文案, 并针对小高度屏幕和窄屏幕添加响应式适配,减少纵向滚动需求。 ``` --- crates/web-ui/public/receivers.css | 29 +++++++++++++++++++++++++++++ crates/web-ui/src/receivers.html | 10 ++++------ 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/crates/web-ui/public/receivers.css b/crates/web-ui/public/receivers.css index 8b24511..5111724 100644 --- a/crates/web-ui/public/receivers.css +++ b/crates/web-ui/public/receivers.css @@ -10,3 +10,32 @@ .rx-surface .rx-cards{align-items:start} .rx-surface>.rx-footnote{margin-bottom:0} @media(max-width:650px){.rx-surface{padding:16px;min-height:360px}} + +/* Compact receiver toolbar and single-screen connection form. */ +.rx-toolbar{margin:0 0 18px;gap:12px} +.rx-toolbar label{flex:1 1 280px;white-space:nowrap;margin:0;gap:10px} +.rx-toolbar input{width:240px;max-width:320px;flex:1 1 180px;height:38px;padding:7px 10px} +.rx-toolbar button{width:auto;flex:0 0 auto;min-height:38px;padding:7px 14px;white-space:nowrap} +#rx-summary{white-space:nowrap;font-size:13px} +.rx-surface{min-height:calc(100dvh - 160px)} +.rx-drawer{padding:16px 20px} +.rx-drawer-header{gap:12px;margin:0 0 16px} +.rx-drawer-header .rx-tabs{margin:0;gap:8px} +.rx-drawer-header #rx-close{width:34px;height:34px;min-height:34px;padding:0;flex:0 0 34px} +.rx-drawer .rx-tabs button{padding:7px 12px;min-height:34px} +#rx-form{display:grid;gap:12px} +#rx-form label{margin:0;gap:5px;font-size:13px;line-height:1.4} +#rx-form input:not([type=checkbox]),#rx-form select{height:36px;min-height:36px;padding:6px 10px;font-size:13px;box-sizing:border-box} +.rx-name-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end} +.rx-drawer .rx-name-row label.rx-enable{height:36px;min-height:36px;gap:8px;white-space:nowrap} +#rx-serial-fields,#rx-network-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px} +#rx-form .rx-note{margin:0;padding:9px 10px;font-size:12px;line-height:1.5} +#rx-form .rx-footnote{margin:0;font-size:12px;line-height:1.5} +#rx-form .rx-actions button{width:auto;min-height:36px;padding:7px 16px} +#rx-message{margin:10px 0 0;font-size:12px;line-height:1.4} +#rx-message:empty{display:none} +#rx-diagnostic>p{margin:10px 0;font-size:13px} +#rx-stats{margin:12px 0;gap:7px;font-size:13px} +#rx-raw{max-height:min(180px,25dvh);margin:12px 0 0} +@media(max-height:600px){.rx-drawer{padding:12px 16px}.rx-drawer-header{margin-bottom:10px}#rx-form{gap:8px}#rx-form input:not([type=checkbox]),#rx-form select{height:32px;min-height:32px}#rx-form .rx-note{padding:6px 8px}} +@media(max-width:650px){.rx-toolbar label{flex-basis:100%}.rx-toolbar input{max-width:none}#rx-summary{margin-right:auto}.rx-surface{min-height:calc(100dvh - 195px)}} diff --git a/crates/web-ui/src/receivers.html b/crates/web-ui/src/receivers.html index a591a3a..7cd2b72 100644 --- a/crates/web-ui/src/receivers.html +++ b/crates/web-ui/src/receivers.html @@ -1,20 +1,18 @@
-

设备管理

管理接收机连接与解码。无人机目标和地图位于实时工作台默认界面。

-
正在加载接收机…
+
正在加载接收机…

切换菜单不停止后台接收。停用、修改连接或删除只影响当前接收机。

-

接收机

-
-
+
+
-

只读接收,不向模块发送配置指令。更改连接参数将重启当前接收任务。

+

只读接收;修改连接参数会重启当前接收任务。