fix: packet monitor renders on mobile devices#2434
Conversation
The CSS had a blanket `display: none !important` on `.packet-monitor-panel` at max-width 768px, hiding the packet monitor everywhere on mobile — sidebar tab, standalone page, and map overlay alike. Only the map overlay should be hidden on mobile (via `.packet-monitor-container` in App.css). Removed the panel-level hide rule and added mobile-friendly styles (header wrapping, horizontal scroll) instead. Also added `standalone` prop for the pop-out page route. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @Yeraze's task —— View job PR Review Complete ✅I've reviewed this mobile packet monitor fix. The changes are well-targeted and address the core issue effectively. Review Tasks
Code Quality & Implementation ✅Excellent problem identification and solution:
CSS Changes in
TypeScript Changes:
Potential Issues & Observations
|
Summary
Fixes packet monitor not rendering on mobile devices. The CSS had a blanket hide rule on
.packet-monitor-panelat 768px that hid it everywhere — sidebar tab, standalone page, and map overlay.Only the map overlay should be hidden on mobile (already handled by
.packet-monitor-containerin App.css). Removed the panel-level hide rule and added mobile-friendly styles instead.Changes
src/components/PacketMonitorPanel.cssdisplay: nonerule, added mobile scroll/wrap stylessrc/components/PacketMonitorPanel.tsxstandalonepropsrc/pages/PacketMonitorPage.tsxstandaloneto panelTest plan