Improve WiFi layout and fix capture functionality

Layout changes:
- Move device list to right column beside visualizations
- Add dedicated WiFi device list panel with header and count
- Hide waterfall and generic output for WiFi mode
- Add responsive styles for smaller screens

Capture fixes:
- Fix handshake capture: add interface param, stop existing scan first
- Fix PMKID capture: add interface param, stop existing scan first
- Add proper error handling with try/catch for both capture functions
- Use monitorInterface variable when available

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-08 13:43:11 +00:00
parent 7608aca681
commit bab49e4442
2 changed files with 223 additions and 67 deletions

View File

@@ -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;
}
}