diff --git a/static/css/index.css b/static/css/index.css index f9b2068..e3fcf7f 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -2545,22 +2545,101 @@ header p { background: var(--text-dim); } +/* WiFi Layout Container - side by side layout */ +.wifi-layout-container { + display: flex; + gap: 15px; + padding: 15px; + background: var(--bg-secondary); + margin: 0 15px 10px 15px; + border: 1px solid var(--border-color); + height: calc(100vh - 200px); /* Take most of the available height */ + min-height: 400px; +} + /* WiFi Visualizations */ .wifi-visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; - padding: 15px; - background: var(--bg-secondary); - margin: 0 15px 10px 15px; + flex: 1; + overflow-y: auto; + padding-right: 10px; +} + +/* WiFi Device List (right column) */ +.wifi-device-list { + width: 350px; + min-width: 300px; + background: var(--bg-primary); border: 1px solid var(--border-color); - max-height: 50vh; /* Limit height to leave room for device cards */ - overflow-y: auto; /* Allow scrolling within visualizations */ + border-radius: 4px; + display: flex; + flex-direction: column; + overflow: hidden; +} + +.wifi-device-list-header { + padding: 10px 12px; + background: var(--bg-tertiary); + border-bottom: 1px solid var(--border-color); + display: flex; + justify-content: space-between; + align-items: center; +} + +.wifi-device-list-header h5 { + margin: 0; + color: var(--accent-cyan); + font-size: 12px; +} + +.wifi-device-list-header .device-count { + color: var(--text-dim); + font-size: 11px; +} + +.wifi-device-list-content { + flex: 1; + overflow-y: auto; + padding: 10px; +} + +/* WiFi network cards in device list - more compact */ +.wifi-network-card { + margin-bottom: 8px; + padding: 10px !important; +} + +.wifi-network-card .header { + font-size: 12px; +} + +.wifi-network-card .sensor-data { + font-size: 10px; +} + +.wifi-network-card .preset-btn { + font-size: 9px !important; + padding: 3px 6px !important; } @media (max-width: 1200px) { + .wifi-layout-container { + flex-direction: column; + height: auto; + max-height: calc(100vh - 200px); + } + .wifi-visuals { grid-template-columns: 1fr; + max-height: 50vh; + } + + .wifi-device-list { + width: 100%; + min-width: auto; + max-height: 300px; } } diff --git a/templates/index.html b/templates/index.html index 476b782..9a987ae 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1199,15 +1199,17 @@ - -