feat(web-ui): 重构地图设置与目标列表页面并优化实时地图导航体验

- 重构地图设置页面布局,采用 flex 替代 grid,新增导航栏、标签页
  和下载步骤组件,改善响应式断点适配
- 将目标列表管理从侧边抽屉方案改为全页面内联编辑器,包含表格视图
  与分类侧栏,支持移动端卡片式降级展示
- 为实时地图屏幕添加半透明毛玻璃导航栏样式,支持 backdrop-filter
  降级,并在地图模式下调整内容区域偏移量
- 修复地图渲染器在画布尺寸为 0 时的边界异常,增加宽高校验
- 优化 fitBounds 的 padding 计算,改为基于容器宽度的比例值并
  限制最大值,避免小屏下地图偏移过大
- 新增 B5、B6、B7 三组 SVG 壁纸资源
```
This commit is contained in:
2026-10-23 14:50:27 +08:00
parent cd1b717e74
commit 461e2c8e7f
29 changed files with 910 additions and 319 deletions
+5
View File
@@ -585,6 +585,7 @@ pub fn init() {
&& let Ok(query) = js_sys::decode_uri_component(encoded)
{
input("history-query").set_value(&String::from(query));
crate::workspace::navigate("archives");
}
let state = Rc::new(RefCell::new(State {
page: 1,
@@ -822,6 +823,7 @@ pub fn init() {
hidden("empty-result", false);
text("form-message", "");
render_rows(&state);
crate::workspace::navigate("register");
let _ = input("serial-no").focus();
return;
}
@@ -858,10 +860,12 @@ pub fn init() {
close_menu(&state, true);
if action == "edit" {
state.borrow_mut().edit_return = format!("more-{record_id}");
crate::workspace::navigate("register");
edit(&state, row);
return;
}
if action == "qr" || action == "view" {
crate::workspace::navigate("register");
draw(&state, row);
return;
}
@@ -976,6 +980,7 @@ pub fn init() {
}
let target = state.borrow().edit_return.clone();
state.borrow_mut().editing = None;
crate::workspace::navigate("archives");
focus(&target);
});
let _ = el("edit-dialog")