From 73b577237ed0f764bd198096731eaff794c253c4 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 28 Nov 2026 11:02:32 -0600 Subject: [PATCH] mici: fix update failed alert layout (#39348) --- openpilot/selfdrive/selfdrived/alerts_offroad.json | 2 +- openpilot/selfdrive/ui/mici/layouts/offroad_alerts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpilot/selfdrive/selfdrived/alerts_offroad.json b/openpilot/selfdrive/selfdrived/alerts_offroad.json index 8ab6fc6ee8..1068ff1dea 100644 --- a/openpilot/selfdrive/selfdrived/alerts_offroad.json +++ b/openpilot/selfdrive/selfdrived/alerts_offroad.json @@ -13,7 +13,7 @@ "severity": 1 }, "Offroad_UpdateFailed": { - "text": "Unable to download updates\n%1", + "text": "Unable to download updates.\n%1", "severity": 1, "_comment": "Set extra field to the failed reason." }, diff --git a/openpilot/selfdrive/ui/mici/layouts/offroad_alerts.py b/openpilot/selfdrive/ui/mici/layouts/offroad_alerts.py index 2edbe94fa9..cfbddafdf7 100644 --- a/openpilot/selfdrive/ui/mici/layouts/offroad_alerts.py +++ b/openpilot/selfdrive/ui/mici/layouts/offroad_alerts.py @@ -109,7 +109,7 @@ class AlertItem(Widget): return title, body else: # No sentence boundary found, return full text as title - return "", text + return text.strip(), "" def _update_content(self): """Update text and calculate height."""