diff --git a/starpilot/system/the_galaxy/assets/components/recordings/dashcam_routes.css b/starpilot/system/the_galaxy/assets/components/recordings/dashcam_routes.css index 324d36a3d..ec6b95bfb 100644 --- a/starpilot/system/the_galaxy/assets/components/recordings/dashcam_routes.css +++ b/starpilot/system/the_galaxy/assets/components/recordings/dashcam_routes.css @@ -1266,7 +1266,8 @@ border-radius: 0; height: 100%; inset: 0; - object-fit: contain; + /* Keep the visible frame size fixed when qcamera swaps to a wider full stream. */ + object-fit: cover; position: absolute; width: 100%; } diff --git a/starpilot/system/the_galaxy/tests/test_dashcam_routes_helpers.py b/starpilot/system/the_galaxy/tests/test_dashcam_routes_helpers.py index d143a4cb1..897aac37a 100644 --- a/starpilot/system/the_galaxy/tests/test_dashcam_routes_helpers.py +++ b/starpilot/system/the_galaxy/tests/test_dashcam_routes_helpers.py @@ -88,10 +88,11 @@ def test_sort_order_select_and_route_items_are_keyed_and_reactive(): assert ".key(route.name)" in source -def test_player_shell_matches_low_quality_video_aspect_ratio(): +def test_player_shell_keeps_both_quality_levels_at_one_fixed_size(): source = COMPONENT_CSS_PATH.read_text(encoding="utf-8") assert "aspect-ratio: 526 / 330;" in source + assert "object-fit: cover;" in source def test_groups_routes_into_today_yesterday_dates_and_unknown():