mirror of
https://github.com/smittix/intercept.git
synced 2026-07-24 08:58:09 -07:00
Fix WiFi table columns and channel chart overflow
Table fixes: - Add BSSID column header to match data columns - Remove vendor column from table rows (6 columns total) - Update placeholder colspan to 6 Layout fixes: - Use minmax() for right columns to allow shrinking - Add overflow handling to layout container - Add min-width: 0 to analysis panel for proper grid behavior - Add overflow-x: auto to channel chart container Channel chart fixes: - Reduce bar width from 20px to 14px - Reduce bar spacing from 4px to 2px - Reduce padding for more compact display - Use viewBox for responsive SVG scaling Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3154,6 +3154,8 @@ header h1 .tagline {
|
|||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
height: calc(100vh - 200px);
|
height: calc(100vh - 200px);
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WiFi Status Bar */
|
/* WiFi Status Bar */
|
||||||
@@ -3201,11 +3203,11 @@ header h1 .tagline {
|
|||||||
/* WiFi Main Content - 3 columns */
|
/* WiFi Main Content - 3 columns */
|
||||||
.wifi-main-content {
|
.wifi-main-content {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 280px 280px;
|
grid-template-columns: 1fr minmax(240px, 280px) minmax(240px, 280px);
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* WiFi Networks Panel (LEFT) */
|
/* WiFi Networks Panel (LEFT) */
|
||||||
@@ -3435,6 +3437,8 @@ header h1 .tagline {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
|
min-width: 0;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wifi-channel-section,
|
.wifi-channel-section,
|
||||||
@@ -3488,6 +3492,8 @@ header h1 .tagline {
|
|||||||
|
|
||||||
.wifi-channel-chart {
|
.wifi-channel-chart {
|
||||||
min-height: 120px;
|
min-height: 120px;
|
||||||
|
overflow-x: auto;
|
||||||
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wifi-security-stats {
|
.wifi-security-stats {
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ const ChannelChart = (function() {
|
|||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|
||||||
const CONFIG = {
|
const CONFIG = {
|
||||||
height: 150,
|
height: 120,
|
||||||
barWidth: 20,
|
barWidth: 14,
|
||||||
barSpacing: 4,
|
barSpacing: 2,
|
||||||
padding: { top: 20, right: 20, bottom: 30, left: 40 },
|
padding: { top: 15, right: 10, bottom: 25, left: 30 },
|
||||||
colors: {
|
colors: {
|
||||||
low: '#22c55e', // Green - low utilization
|
low: '#22c55e', // Green - low utilization
|
||||||
medium: '#eab308', // Yellow - medium
|
medium: '#eab308', // Yellow - medium
|
||||||
@@ -108,9 +108,9 @@ const ChannelChart = (function() {
|
|||||||
if (s.ap_count > maxApCount) maxApCount = s.ap_count;
|
if (s.ap_count > maxApCount) maxApCount = s.ap_count;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Build SVG
|
// Build SVG with viewBox for responsive scaling
|
||||||
let svg = `
|
let svg = `
|
||||||
<svg width="${width}" height="${height}" class="channel-chart-svg">
|
<svg viewBox="0 0 ${width} ${height}" class="channel-chart-svg" style="width: 100%; height: auto; max-height: ${height}px;">
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="utilGradientLow" x1="0%" y1="0%" x2="0%" y2="100%">
|
<linearGradient id="utilGradientLow" x1="0%" y1="0%" x2="0%" y2="100%">
|
||||||
<stop offset="0%" style="stop-color:${CONFIG.colors.low};stop-opacity:0.9" />
|
<stop offset="0%" style="stop-color:${CONFIG.colors.low};stop-opacity:0.9" />
|
||||||
|
|||||||
@@ -731,7 +731,6 @@ const WiFiMode = (function() {
|
|||||||
<span class="security-badge ${securityClass}">${escapeHtml(network.security)}</span>
|
<span class="security-badge ${securityClass}">${escapeHtml(network.security)}</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="col-clients">${network.client_count || 0}</td>
|
<td class="col-clients">${network.client_count || 0}</td>
|
||||||
<td class="col-vendor">${escapeHtml(network.vendor || '-')}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -521,6 +521,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="sortable" data-sort="essid">SSID</th>
|
<th class="sortable" data-sort="essid">SSID</th>
|
||||||
|
<th class="sortable" data-sort="bssid">BSSID</th>
|
||||||
<th class="sortable" data-sort="channel">Ch</th>
|
<th class="sortable" data-sort="channel">Ch</th>
|
||||||
<th class="sortable" data-sort="rssi">Signal</th>
|
<th class="sortable" data-sort="rssi">Signal</th>
|
||||||
<th class="sortable" data-sort="security">Security</th>
|
<th class="sortable" data-sort="security">Security</th>
|
||||||
@@ -529,7 +530,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody id="wifiNetworkTableBody">
|
<tbody id="wifiNetworkTableBody">
|
||||||
<tr class="wifi-network-placeholder">
|
<tr class="wifi-network-placeholder">
|
||||||
<td colspan="5">
|
<td colspan="6">
|
||||||
<div class="placeholder-text">Start scanning to discover networks</div>
|
<div class="placeholder-text">Start scanning to discover networks</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user