File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments