Parcourir la source

[FL-2511] Updater: fixed long update descriptions overlapping UI elements #1327

Co-authored-by: あく <alleteam@gmail.com>
hedger il y a 3 ans
Parent
commit
f060d005f4
1 fichiers modifiés avec 6 ajouts et 4 suppressions
  1. 6 4
      applications/updater/scenes/updater_scene_loadcfg.c

+ 6 - 4
applications/updater/scenes/updater_scene_loadcfg.c

@@ -29,14 +29,16 @@ void updater_scene_loadcfg_on_enter(void* context) {
         widget_add_string_element(
             updater->widget, 64, 12, AlignCenter, AlignCenter, FontPrimary, "Update");
 
-        widget_add_string_multiline_element(
+        widget_add_text_box_element(
             updater->widget,
-            64,
+            5,
+            20,
+            118,
             32,
             AlignCenter,
             AlignCenter,
-            FontSecondary,
-            string_get_cstr(pending_upd->manifest->version));
+            string_get_cstr(pending_upd->manifest->version),
+            true);
 
         widget_add_button_element(
             updater->widget,