Fix scrolling text left-align logic

This commit is contained in:
Willy-JL
2023-03-15 18:49:17 +00:00
parent faafee5fb5
commit 3b0daf2f21
+5 -2
View File
@@ -586,8 +586,11 @@ void elements_scrollable_text_line(
size_t len_px = canvas_string_width(canvas, furi_string_get_cstr(line));
if(len_px > width) {
centered = false;
x -= width / 2;
if(centered) {
centered = false;
x -= width / 2;
}
if(ellipsis) {
width -= canvas_string_width(canvas, "...");
}