Replace modal with inline device detail panel above proximity radar

- Added detail panel that appears above the radar when a device is clicked
- Shows comprehensive device information:
  - Large RSSI display with visual bar and range indicator
  - Protocol, status, and flag badges
  - 8-column stats grid: Manufacturer, Mfr ID, Address Type, Seen count,
    Min/Max RSSI, First/Last seen timestamps
  - Service UUIDs list (when available)
  - Copy Address button
- Selected device is highlighted in the device list
- Close button (×) to dismiss the panel
- Cyan accent border and gradient header for visual distinction

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-21 20:04:49 +00:00
parent 3b8d4f3f74
commit 201fce0125
3 changed files with 405 additions and 142 deletions

View File

@@ -3293,6 +3293,233 @@ header h1 .tagline {
min-width: 0;
}
/* Bluetooth Device Detail Panel */
.bt-detail-panel {
background: var(--bg-tertiary);
border: 1px solid var(--accent-cyan);
border-radius: 8px;
margin-bottom: 12px;
overflow: hidden;
flex-shrink: 0;
}
.bt-detail-header {
background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
padding: 12px 14px;
border-bottom: 1px solid var(--border-color);
}
.bt-detail-title-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.bt-detail-title-row h5 {
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--text-primary);
}
.bt-detail-close {
background: none;
border: none;
color: var(--text-dim);
font-size: 20px;
cursor: pointer;
padding: 0;
line-height: 1;
transition: color 0.2s;
}
.bt-detail-close:hover {
color: var(--accent-red);
}
.bt-detail-address {
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
margin-top: 4px;
}
.bt-detail-body {
padding: 12px 14px;
}
.bt-detail-rssi-section {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
padding: 10px;
background: var(--bg-secondary);
border-radius: 6px;
}
.bt-detail-rssi-main {
display: flex;
align-items: baseline;
gap: 4px;
}
.bt-detail-rssi-value {
font-family: 'JetBrains Mono', monospace;
font-size: 28px;
font-weight: 700;
}
.bt-detail-rssi-unit {
font-size: 12px;
color: var(--text-dim);
}
.bt-detail-rssi-bar-container {
flex: 1;
height: 10px;
background: var(--bg-tertiary);
border-radius: 5px;
overflow: hidden;
}
.bt-detail-rssi-bar {
height: 100%;
border-radius: 5px;
transition: width 0.3s ease;
}
.bt-detail-rssi-range {
font-size: 10px;
color: var(--text-dim);
text-transform: uppercase;
white-space: nowrap;
}
.bt-detail-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 12px;
}
.bt-detail-badge {
padding: 3px 8px;
border-radius: 4px;
font-size: 9px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.bt-detail-badge.ble {
background: rgba(59, 130, 246, 0.2);
color: #3b82f6;
border: 1px solid rgba(59, 130, 246, 0.3);
}
.bt-detail-badge.classic {
background: rgba(139, 92, 246, 0.2);
color: #8b5cf6;
border: 1px solid rgba(139, 92, 246, 0.3);
}
.bt-detail-badge.new {
background: rgba(59, 130, 246, 0.2);
color: #3b82f6;
border: 1px solid rgba(59, 130, 246, 0.3);
}
.bt-detail-badge.baseline {
background: rgba(34, 197, 94, 0.2);
color: #22c55e;
border: 1px solid rgba(34, 197, 94, 0.3);
}
.bt-detail-badge.flag {
background: rgba(107, 114, 128, 0.2);
color: #9ca3af;
border: 1px solid rgba(107, 114, 128, 0.3);
}
.bt-detail-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
margin-bottom: 12px;
}
.bt-detail-stat {
background: var(--bg-secondary);
padding: 8px 10px;
border-radius: 4px;
}
.bt-detail-stat-label {
display: block;
font-size: 9px;
color: var(--text-dim);
text-transform: uppercase;
margin-bottom: 2px;
}
.bt-detail-stat-value {
display: block;
font-size: 11px;
font-weight: 600;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bt-detail-services {
margin-bottom: 12px;
}
.bt-detail-services-list {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: 6px;
}
.bt-detail-service {
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
background: var(--bg-secondary);
padding: 4px 8px;
border-radius: 4px;
color: var(--text-dim);
}
.bt-detail-actions {
display: flex;
gap: 8px;
}
.bt-detail-btn {
padding: 6px 14px;
font-size: 11px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 4px;
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s;
}
.bt-detail-btn:hover {
background: var(--accent-cyan);
border-color: var(--accent-cyan);
color: #000;
}
/* Selected device highlight */
.bt-device-row.selected {
background: rgba(0, 212, 255, 0.1);
border-color: var(--accent-cyan);
}
.bt-device-list {
border-left-color: var(--accent-purple) !important;
}