diff --git a/src/modules/settings_screen.cpp b/src/modules/settings_screen.cpp index 549e827..4a787fb 100644 --- a/src/modules/settings_screen.cpp +++ b/src/modules/settings_screen.cpp @@ -838,7 +838,10 @@ static void buildSystemPage(lv_obj_t* page) { // two switches on the right: polarity ("Inverted") and on/off; the page has no room for a fifth row lv_obj_t* diff_right = box(right, LV_FLEX_FLOW_ROW); lv_obj_set_size(diff_right, LV_SIZE_CONTENT, LV_SIZE_CONTENT); - lv_obj_set_flex_align(diff_right, LV_FLEX_ALIGN_END, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER); + // START, not END: with END, LVGL 8's content-size pass measures only the last child + // (the earlier ones sit at negative x) and clips "Inverted" away - seen on the board. + // The row's SPACE_BETWEEN already pushes this box to the right edge. + lv_obj_set_flex_align(diff_right, LV_FLEX_ALIGN_START, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER); lv_obj_set_style_pad_column(diff_right, 12, 0); label(diff_right, "Inverted", &lv_font_montserrat_20, UI_COL_MUTED); g_sys_diff_inv = toggle(diff_right, onDiffInvertSwitch, NULL);