From e810b1c1e70f8634d769e858be4d2c64ad5ac885 Mon Sep 17 00:00:00 2001 From: mawei Date: Wed, 3 Jun 2026 11:15:24 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E4=B8=BB=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=20sunnylink=20=E8=BF=9E=E6=8E=A5=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/ui/sunnypilot/layouts/sidebar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/sunnypilot/layouts/sidebar.py b/selfdrive/ui/sunnypilot/layouts/sidebar.py index 79bb15db..66b7c896 100644 --- a/selfdrive/ui/sunnypilot/layouts/sidebar.py +++ b/selfdrive/ui/sunnypilot/layouts/sidebar.py @@ -79,7 +79,7 @@ class SidebarSP: self._sunnylink_status.update(tr_noop("SUNNYLINK"), status, color) def _draw_metrics_w_sunnylink(self, rect: rl.Rectangle, _temp, _panda, _connect): - metrics = [_temp, _panda, _connect, self._sunnylink_status] + metrics = [_temp, _panda, _connect] start_y = int(rect.y) + METRIC_START_Y available_height = max(0, int(HOME_BTN.y) - METRIC_MARGIN - METRIC_HEIGHT - start_y) spacing = available_height / max(1, len(metrics) - 1)