From 8835ef3598b8b4af16bf85a6b8780fc88e1a8de4 Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Tue, 12 Sep 2023 00:42:34 +0300 Subject: [PATCH] move things --- applications/services/gui/modules/variable_item_list.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/applications/services/gui/modules/variable_item_list.c b/applications/services/gui/modules/variable_item_list.c index 28296dd08e..e87b2ad0c2 100644 --- a/applications/services/gui/modules/variable_item_list.c +++ b/applications/services/gui/modules/variable_item_list.c @@ -85,9 +85,8 @@ static void variable_item_list_draw_callback(Canvas* canvas, void* _model) { // Only left text, no right text canvas_draw_str(canvas, 6, item_text_y, item->label); } else { - if((furi_string_size(item->current_value_text) < (size_t)4) && - (strlen(item->label) > (size_t)16)) { - temp_x_default = 77; + if(furi_string_size(item->current_value_text) < (size_t)4) { + temp_x_default = 82; temp_w_default = 71; } elements_scrollable_text_line_str( @@ -110,7 +109,7 @@ static void variable_item_list_draw_callback(Canvas* canvas, void* _model) { elements_scrollable_text_line_str( canvas, - (115 + 73) / 2 + 1, + (115 + temp_x_default) / 2 + 1, item_text_y, 37, furi_string_get_cstr(item->current_value_text),