Skip to content

Commit 9947206

Browse files
authored
comma four: fix wrapping steer right (commaai#36848)
rm extra space
1 parent 0871a35 commit 9947206

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

selfdrive/ui/mici/onroad/alert_renderer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ def _icon_helper(self, alert: Alert) -> AlertLayout:
200200
text_x = self._rect.x + ALERT_MARGIN
201201
text_width = self._rect.width - ALERT_MARGIN
202202
if icon_side == 'left':
203-
text_x = self._rect.x + self._txt_turn_signal_right.width + 20 * 2
204-
text_width = self._rect.width - ALERT_MARGIN - self._txt_turn_signal_right.width - 20 * 2
203+
text_x = self._rect.x + self._txt_turn_signal_right.width
204+
text_width = self._rect.width - ALERT_MARGIN - self._txt_turn_signal_right.width
205205
elif icon_side == 'right':
206206
text_x = self._rect.x + ALERT_MARGIN
207-
text_width = self._rect.width - ALERT_MARGIN - self._txt_turn_signal_right.width - 20 * 2
207+
text_width = self._rect.width - ALERT_MARGIN - self._txt_turn_signal_right.width
208208

209209
text_rect = rl.Rectangle(
210210
text_x,

0 commit comments

Comments
 (0)