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
+41 -24
View File
@@ -15,22 +15,22 @@ body[data-screen=home][data-menu-hidden=true] .home-launcher.homescreen { left:
.home-card-desc { min-height: 52px; }
.home-card-preview { margin-bottom: 8px; }
.home-card-open { margin-top: auto; }
body[data-screen=register] #workspace-content,
body:is([data-screen=register], [data-screen=archives]) #workspace-content,
#appearance-view { container: workbench / inline-size; overflow: auto; }
body[data-screen=register] #workspace-content > div { height: 100%; min-height: 0; }
body[data-screen=register] .registry-workspace {
body:is([data-screen=register], [data-screen=archives]) #workspace-content > div { height: 100%; min-height: 0; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace {
height: 100%; min-height: 0; max-height: 100%; padding: 24px;
grid-template-columns: 240px minmax(0, 1fr) 280px;
grid-template-rows: minmax(0, 1fr); gap: 18px;
}
.workbench-panel,
body[data-screen=register] .registry-workspace :is(.history-panel, .registration-editor, #registration-result) {
body:is([data-screen=register], [data-screen=archives]) .registry-workspace :is(.history-panel, .registration-editor, #registration-result) {
min-width: 0; min-height: 0; border: 1px solid var(--work-line); border-radius: 12px;
background: var(--work-panel); color: var(--work-text);
backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter);
box-shadow: 0 12px 28px #0003, inset 0 1px 0 #ffffff0b;
}
body[data-screen=register] .registry-workspace .history-panel {
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .history-panel {
display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
}
.registry-workspace .history-heading {
@@ -45,7 +45,7 @@ body[data-screen=register] .registry-workspace .history-panel {
.registry-workspace .pagination { margin: 0; padding: 14px 16px; flex-shrink: 0; }
.registry-workspace #archive-warning:not([hidden]) { padding: 10px 16px; flex-shrink: 0; }
.registry-workspace .export-controls .registry-popup { left: 10px; right: 10px; }
body[data-screen=register] .registry-workspace .registration-editor { display: flex; flex-direction: column; overflow: hidden; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-editor { display: flex; flex-direction: column; overflow: hidden; }
.registry-workspace .registration-editor .registration-heading {
padding: 17px 20px; margin: 0; min-height: 70px; flex-shrink: 0; border-bottom: 1px solid var(--work-line);
}
@@ -53,22 +53,22 @@ body[data-screen=register] .registry-workspace .registration-editor { display: f
.registry-workspace .registration-editor .registration-heading p { font-size: 12px; }
.registry-workspace #register-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.registry-workspace .registration-fields-scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px 20px; scroll-padding-block: 18px; scrollbar-width: thin; }
body[data-screen=register] .registry-workspace #register-form .registry-group {
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #register-form .registry-group {
border: 0; border-radius: 0; border-bottom: 1px solid var(--work-line);
background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
padding: 0 0 23px; margin: 0 0 23px; box-shadow: none;
}
body[data-screen=register] .registry-workspace #register-form .registry-group:last-of-type { border-bottom: 0; padding-bottom: 10px; margin-bottom: 0; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #register-form .registry-group:last-of-type { border-bottom: 0; padding-bottom: 10px; margin-bottom: 0; }
.registry-workspace .registration-number { grid-template-columns: 1fr; gap: 8px; }
.registry-workspace .registration-number #fpv-hint { margin-top: 0; }
body[data-screen=register] .registry-workspace .registration-savebar {
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-savebar {
position: static; flex-shrink: 0; margin: 0; padding: 15px 20px;
background: var(--glass-solid); box-shadow: none; backdrop-filter: none;
-webkit-backdrop-filter: none; gap: 12px;
}
.registry-workspace .registration-savebar #draft-state { font-size: 11px; }
.registry-workspace #register-button { font-size: 12px; }
body[data-screen=register] .registry-workspace #registration-result {
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #registration-result {
padding: 0; margin: 0; overflow: auto; scroll-padding-top: 60px; scrollbar-width: thin;
}
#registration-result > h2 {
@@ -91,7 +91,7 @@ body[data-screen=register] .registry-workspace #registration-result {
.registry-workspace #registration-result .result-tip { font-size: 12px; }
#appearance-view .settings-layout {
height: 100%; min-height: 0; max-width: none; width: 100%; padding: 24px;
display: grid; grid-template-columns: 190px minmax(0, 1fr) 285px;
display: grid; grid-template-columns: minmax(0, 1fr) 285px;
grid-template-rows: minmax(0, 1fr); align-items: start; gap: 18px; overflow: hidden;
}
#appearance-view .settings-sidebar { padding: 20px 12px; height: auto; }
@@ -107,6 +107,7 @@ body[data-screen=register] .registry-workspace #registration-result {
#appearance-view .glass-material-note { padding: 14px 0 20px; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--work-line); margin: 0; }
#appearance-view .glass-material-note p { font-size: 12px; }
#appearance-view .section-caption { margin: 23px 0 13px; }
#appearance-view #appearance-wallpapers { margin-top: 0 !important; }
#appearance-view .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#appearance-view .wall-choice { padding: 0; border-radius: 8px; border: 1px solid var(--work-line); background: #07152544; }
#appearance-view .wall-choice img { height: 80px !important; }
@@ -126,7 +127,7 @@ body[data-screen=register] .registry-workspace #registration-result {
#desktop-sample::before, #desktop-sample::after { display: none; }
#appearance-wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(var(--preview-blur, 0px)); }
.preview-shade { position: absolute; inset: 0; background: linear-gradient(var(--glass-workspace), var(--glass-workspace)), rgba(0, 0, 0, var(--preview-shade, .14)); }
.preview-material { position: absolute; inset: 20px 16px; border: 1px solid var(--work-line); border-radius: 8px; padding: 17px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--work-panel); backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); }
.preview-material { position: absolute; inset: auto 12px 12px 36%; border: 1px solid var(--work-line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 7px; background: var(--work-panel); backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); }
.preview-material span, .preview-material small { font-size: 10px; color: var(--work-muted); }
.preview-material strong { font-size: 14px; font-weight: 600; }
.preview-values { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 12px; margin: 0 0 23px; }
@@ -147,32 +148,32 @@ body[data-screen=register] .registry-workspace #registration-result {
.home-card-open svg { position: static; }
}
@container workbench (max-width: 1199px) {
body[data-screen=register] .registry-workspace { height: auto; min-height: 100%; max-height: none; overflow: visible; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: auto auto; }
body[data-screen=register] .registry-workspace .history-panel { grid-row: 1/3; max-height: calc(100dvh - 96px); position: sticky; top: 24px; }
body[data-screen=register] .registry-workspace .registration-editor { height: max(480px, calc(100dvh - 96px)); }
body[data-screen=register] .registry-workspace #registration-result { grid-column: 2; max-height: none; }
#appearance-view .settings-layout { height: auto; min-height: 100%; overflow: visible; grid-template-columns: 160px minmax(0, 1fr); grid-template-rows: auto auto; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace { height: auto; min-height: 100%; max-height: none; overflow: visible; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: auto auto; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .history-panel { grid-row: 1/3; max-height: calc(100dvh - 96px); position: sticky; top: 24px; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-editor { height: max(480px, calc(100dvh - 96px)); }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #registration-result { grid-column: 2; max-height: none; }
#appearance-view .settings-layout { height: auto; min-height: 100%; overflow: visible; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
#appearance-view .settings-sidebar { grid-row: 1/3; }
#appearance-view .setting-content { height: auto; max-height: none; }
#appearance-view .settings-scroll { overflow: visible; }
#appearance-view .settings-preview { grid-column: 2; max-height: none; }
#appearance-view .settings-preview { grid-column: auto; max-height: none; }
}
/* The container itself scrolls at narrower sizes; descendants control the columns. */
@media(max-width: 1267px) {
body[data-screen=register] #workspace-content, #appearance-view { overflow: auto; }
body:is([data-screen=register], [data-screen=archives]) #workspace-content, #appearance-view { overflow: auto; }
}
@container workbench (max-width: 767px) {
body[data-screen=register] .registry-workspace { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
body[data-screen=register] .registry-workspace .history-panel { order: 0; height: 280px; max-height: 280px; flex-shrink: 0; position: relative; top: auto; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .history-panel { order: 0; height: 280px; max-height: 280px; flex-shrink: 0; position: relative; top: auto; }
.registry-workspace .history-content { padding: 13px 15px; }
.registry-workspace .pagination { padding: 10px 15px; gap: 6px; }
body[data-screen=register] .registry-workspace .registration-editor { order: 1; height: auto; min-height: 0; overflow: visible; flex-shrink: 0; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-editor { order: 1; height: auto; min-height: 0; overflow: visible; flex-shrink: 0; }
.registry-workspace #register-form { display: block; }
.registry-workspace .registration-fields-scroll { overflow: visible; padding: 20px 16px 30px; }
.registry-workspace .registration-fields { grid-template-columns: 1fr; }
body[data-screen=register] .registry-workspace .registration-savebar { position: sticky; bottom: 0; padding: 14px 16px; z-index: 3; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-savebar { position: sticky; bottom: 0; padding: 14px 16px; z-index: 3; }
.registry-workspace #register-button { width: 100%; }
body[data-screen=register] .registry-workspace #registration-result { order: 2; flex-shrink: 0; overflow: visible; }
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #registration-result { order: 2; flex-shrink: 0; overflow: visible; }
#registration-result > h2 { position: static; }
.registry-workspace #registration-result .empty-state { flex-direction: column; }
#appearance-view .settings-layout { display: flex; flex-direction: column; padding: 16px; gap: 16px; }
@@ -192,3 +193,19 @@ body[data-screen=register] .registry-workspace #registration-result {
body[data-screen=home] #reference-title { display: none; }
.home-heading h1 { font-size: 24px; }
}
/* Module pages share one navigation rail; archives occupy their own view. */
body[data-screen=register] .registry-workspace { grid-template-columns: minmax(0, 1fr) 280px; }
body[data-screen=archives] .registry-workspace { grid-template-columns: minmax(0, 1fr); }
body[data-screen=archives] .history-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; align-content: start; }
body[data-screen=archives] .archive-card { margin: 0; }
@container workbench (max-width: 760px) {
body[data-screen=register] .registry-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: auto; max-height: none; }
#appearance-view .settings-layout { grid-template-columns: minmax(0, 1fr); height: auto; overflow: visible; }
}
body[data-screen=archives] .registry-workspace .history-panel { grid-row: auto; height: calc(100dvh - 96px); max-height: none; position: static; }
@container workbench (max-width: 767px) {
body[data-screen=register] .registry-workspace #registration-result { grid-column: auto; }
body[data-screen=archives] .registry-workspace .history-panel { min-height: 420px; }
}