diff --git a/sfm/sfm_webapp.html b/sfm/sfm_webapp.html index 941868b..d59ea41 100644 --- a/sfm/sfm_webapp.html +++ b/sfm/sfm_webapp.html @@ -110,8 +110,7 @@ .btn-ghost:hover { border-color: var(--blue-lt); color: var(--blue-lt); } .btn:disabled { background: var(--surface2) !important; color: var(--text-mute) !important; cursor: not-allowed; border-color: var(--border2) !important; } - #connect-btn { background: var(--green); color: #fff; margin-left: auto; } - #connect-btn:hover { background: var(--green-lt); } + /* #connect-btn styles moved to #live-connect-bar block */ /* ── Device info bar ── */ #device-bar { @@ -585,6 +584,59 @@ } .unit-card .uc-label { font-size: 11px; color: var(--text-mute); } .unit-card .uc-val { font-size: 12px; color: var(--text); font-family: monospace; } + + /* ── Section switcher ── */ + .section-switcher { + display: flex; + gap: 3px; + background: var(--bg); + border: 1px solid var(--border); + border-radius: 7px; + padding: 3px; + } + .section-btn { + border: none; + border-radius: 5px; + cursor: pointer; + font-size: 12px; + font-weight: 600; + padding: 4px 14px; + transition: background 0.12s, color 0.12s; + background: none; + color: var(--text-dim); + white-space: nowrap; + } + .section-btn:hover { color: var(--text); } + .section-btn.active { background: var(--blue); color: #fff; } + + /* ── Section containers ── */ + #section-live, #section-db { + display: flex; + flex-direction: column; + flex: 1; + overflow: hidden; + min-height: 0; + } + #section-db { display: none; } + + /* ── Live connect bar (host/port/connect, live section only) ── */ + #live-connect-bar { + background: var(--surface); + border-bottom: 1px solid var(--border2); + padding: 8px 18px; + display: flex; + align-items: center; + gap: 10px; + flex-shrink: 0; + flex-wrap: wrap; + } + #live-connect-bar label.hdr { color: var(--text-dim); font-size: 11px; } + #live-connect-bar input[type="text"], + #live-connect-bar input[type="number"] { font-size: 12px; padding: 5px 8px; } + #live-connect-bar #dev-host { width: 150px; } + #live-connect-bar #dev-port { width: 70px; } + #connect-btn { margin-left: auto; background: var(--green); color: #fff; } + #connect-btn:hover { background: var(--green-lt); } @@ -597,15 +649,27 @@ -
- - - - +
+
+ +
- + +
+ + +
+ + + + + +
+
@@ -670,15 +734,11 @@
Ready — enter device host and click Connect.
- -
- - - - - - - + +
+ + +
+ +
+ + +
+ + +
+ + + +
+ +