feat(web-ui): 添加 Windows 系统依赖并更新样式

- 在 Cargo.toml 中为 Windows 平台添加 windows-sys 依赖,版本为 0.52,包含 Win32_Foundation 和 Win32_System_Registry 特性。
- 更新相关 CSS 文件以改善界面样式,确保在不同主题下的视觉一致性。
- 在 JavaScript 文件中实现围栏标记的绘制和管理功能,增强地图交互体验。
This commit is contained in:
2026-10-31 20:01:50 +08:00
parent 5522843823
commit 3ea9cf32ee
27 changed files with 1301 additions and 103 deletions
+37 -3
View File
@@ -8,7 +8,6 @@ body[data-screen=home] .home-launcher.homescreen {
body[data-screen=home] :is(.reference-rail, #toggle-menu) { display: none; }
.home-space { width: 100%; max-width: 1170px; }
.home-heading { text-align: center; }
.home-kicker { color: var(--work-muted); font-size: 11px; letter-spacing: .14em; margin-bottom: 10px; }
.home-heading h1 { font-size: 27px; }
.home-cards { gap: 20px; }
.home-card { min-height: 370px; padding: 25px; }
@@ -72,10 +71,17 @@ body:is([data-screen=register], [data-screen=archives]) .registry-workspace .reg
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 {
#registration-result > .result-heading {
position: sticky; top: 0; z-index: 2; padding: 17px 20px; min-height: 54px;
background: var(--glass-solid); border-bottom: 1px solid var(--work-line);
display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
#registration-result > .result-heading h2 { margin: 0; font-size: 16px; }
#close-archive-detail {
height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--work-line);
background: transparent; color: var(--work-text); font-size: 12px; flex-shrink: 0;
}
.result-fpv-label { margin: 0; font-size: 11px; letter-spacing: .04em; color: var(--work-muted); }
.registry-workspace #registration-result .empty-state {
display: flex; flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px;
}
@@ -175,7 +181,7 @@ body:is([data-screen=register], [data-screen=archives]) .registry-workspace #reg
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:is([data-screen=register], [data-screen=archives]) .registry-workspace #registration-result { order: 2; flex-shrink: 0; overflow: visible; }
#registration-result > h2 { position: static; }
#registration-result > .result-heading { position: static; }
.registry-workspace #registration-result .empty-state { flex-direction: column; }
#appearance-view .settings-layout { display: flex; flex-direction: column; padding: 16px; gap: 16px; }
#appearance-view .settings-sidebar { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding: 10px; flex-shrink: 0; }
@@ -210,3 +216,31 @@ body[data-screen=archives] .registry-workspace .history-panel { grid-row: auto;
body[data-screen=register] .registry-workspace #registration-result { grid-column: auto; }
body[data-screen=archives] .registry-workspace .history-panel { min-height: 420px; }
}
body[data-screen=archives][data-archive-detail=open] .registry-workspace {
display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr); height: 100%; max-height: 100%; overflow: hidden;
}
body[data-screen=archives][data-archive-detail=open] .registry-workspace :is(.history-panel, #registration-result) {
height: auto; max-height: none; min-height: 0; position: static;
}
body[data-screen=archives][data-archive-detail=open] #registration-result .record-result {
display: grid; grid-template-columns: 220px minmax(280px, 480px); justify-content: center; align-items: start;
column-gap: 36px; row-gap: 12px; padding: 28px 32px 36px;
}
body[data-screen=archives][data-archive-detail=open] #registration-result .qr-stage { grid-column: 1; grid-row: 1 / span 8; width: 200px; justify-self: center; }
body[data-screen=archives][data-archive-detail=open] #registration-result .record-result > :not(.qr-stage) { grid-column: 2; min-width: 0; }
body[data-screen=archives][data-archive-detail=open] #registration-result .result-fields { display: flex; flex-direction: column; gap: 14px; }
body[data-screen=archives][data-archive-detail=open] #registration-result .result-fields dd { font-size: 15px; }
body[data-screen=archives][data-archive-detail=open] #registration-result .result-actions { flex-direction: row; flex-wrap: wrap; }
body[data-screen=archives][data-archive-detail=open] #registration-result .result-actions :is(button, a) { flex: 1 1 160px; width: auto; }
@container workbench (max-width: 860px) {
body[data-screen=archives][data-archive-detail=open] .registry-workspace {
display: flex; flex-direction: column; height: auto; max-height: none; overflow: visible;
}
body[data-screen=archives][data-archive-detail=open] .registry-workspace #registration-result { order: 0; flex: none; overflow: visible; }
body[data-screen=archives][data-archive-detail=open] .registry-workspace .history-panel {
order: 1; height: 320px; min-height: 0; max-height: 320px; flex-shrink: 0;
}
body[data-screen=archives][data-archive-detail=open] #registration-result .record-result { display: flex; flex-direction: column; align-items: stretch; }
body[data-screen=archives][data-archive-detail=open] #registration-result .qr-stage { width: 180px; align-self: flex-start; }
}