Skip to content

Commit

Permalink
move things
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Sep 11, 2023
1 parent cbc5d61 commit 8835ef3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions applications/services/gui/modules/variable_item_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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),
Expand Down

0 comments on commit 8835ef3

Please sign in to comment.