From 7bfe5ab830125a1144b5da64ff18ce36e4f74ec5 Mon Sep 17 00:00:00 2001 From: dirwin31 <83434411+dirwin31@users.noreply.github.com> Date: Thu, 27 Aug 2026 17:47:48 -0700 Subject: [PATCH] When you just miss one value. --- .../the_galaxy/assets/components/recordings/dashcam_routes.css | 3 ++- .../system/the_galaxy/tests/test_dashcam_routes_helpers.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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():