From 4ab01b43d201d57386f342b45b4a4a0daa4d2c3b Mon Sep 17 00:00:00 2001 From: infiniteCable2 Date: Sun, 16 Nov 2025 15:53:15 +0100 Subject: [PATCH] Update battery_details.py --- selfdrive/ui/onroad/battery_details.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/onroad/battery_details.py b/selfdrive/ui/onroad/battery_details.py index d83efe557..712863917 100644 --- a/selfdrive/ui/onroad/battery_details.py +++ b/selfdrive/ui/onroad/battery_details.py @@ -13,7 +13,7 @@ class BatteryPanelConfig: panel_width_ratio: float = 0.7 # 70 % der Breite von rechts panel_margin: int = 30 # Abstand zum Rand line_height: int = 48 # Basis-Zeilenhöhe - label_width: int = 280 + label_width: int = 320 text_margin: int = 25 # Abstand Label → Wert CONFIG = BatteryPanelConfig() @@ -91,7 +91,7 @@ class BatteryDetails(Widget): label_width = CONFIG.label_width text_margin = CONFIG.text_margin - column_spacing = panel_width // 2 - 20 + column_spacing = panel_width // 2 - 40 value_width = column_spacing - label_width - text_margin labels = [