mirror of
https://github.com/smittix/intercept.git
synced 2026-04-25 15:20:00 -07:00
Fix device card rendering - disable legacy code and fix CSS
- Disable legacy addBtDeviceCard when BluetoothMode is active - Clear device container when starting scan to remove legacy cards - Fix grid CSS with explicit auto height and align-items: start - Add visibility rules for all card body elements - Reset devices map when clearing container Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -213,12 +213,10 @@ const BluetoothMode = (function() {
|
||||
if (startBtn) startBtn.style.display = scanning ? 'none' : 'block';
|
||||
if (stopBtn) stopBtn.style.display = scanning ? 'block' : 'none';
|
||||
|
||||
// Clear placeholder when starting scan
|
||||
// Clear container when starting scan (removes legacy cards and placeholder)
|
||||
if (scanning && deviceContainer) {
|
||||
const placeholder = deviceContainer.querySelector('div[style*="text-align: center"]');
|
||||
if (placeholder && placeholder.textContent.includes('Start scanning')) {
|
||||
deviceContainer.innerHTML = '';
|
||||
}
|
||||
deviceContainer.innerHTML = '';
|
||||
devices.clear(); // Also clear our device map
|
||||
}
|
||||
|
||||
// Update global status if available
|
||||
|
||||
Reference in New Issue
Block a user