diff --git a/ui/static/graph.html b/ui/static/graph.html index b419940..c7ee296 100644 --- a/ui/static/graph.html +++ b/ui/static/graph.html @@ -52,6 +52,73 @@ color: #ffffff; font-weight: bold; } + /* 开关切换 */ + .toggle-row { + margin-top: 8px; + display: flex; + align-items: center; + gap: 12px; + } + .toggle-row .label-text { + color: #8888aa; + font-size: 12px; + } + .toggle-switch { + position: relative; + width: 36px; + height: 20px; + cursor: pointer; + flex-shrink: 0; + } + .toggle-track { + position: absolute; + inset: 0; + background: rgba(60,60,80,0.8); + border-radius: 10px; + transition: all 0.3s; + border: 1px solid rgba(100,100,255,0.2); + } + .toggle-track.on { + background: rgba(68,136,255,0.5); + border-color: #4488ff; + } + .toggle-knob { + position: absolute; + width: 16px; + height: 16px; + left: 2px; + top: 2px; + background: #6666aa; + border-radius: 50%; + transition: all 0.3s; + } + .toggle-knob.on { + left: 18px; + background: #4488ff; + } + .toggle-btn { + display: flex; + align-items: center; + gap: 4px; + padding: 2px 8px; + border-radius: 4px; + border: 1px solid rgba(100,100,255,0.15); + background: transparent; + color: #8888aa; + font-size: 12px; + font-family: 'Courier New', monospace; + cursor: pointer; + transition: all 0.2s; + } + .toggle-btn:hover { + background: rgba(68,136,255,0.15); + color: #fff; + } + .toggle-btn.on { + background: rgba(68,136,255,0.3); + color: #4488ff; + border-color: #4488ff; + } #node-info { position: absolute; top: 20px; @@ -328,17 +395,17 @@
节点: 0
边: 0
状态: 初始化中...
-+