fix(games): wrap long tile labels

Prevent "Calme ta colère" from clipping in carousel tiles by constraining
label width to 90%, enabling text wrap, and center-aligning.
This commit is contained in:
L'électron rare
2026-06-21 10:38:27 +02:00
parent 94533f84c9
commit 5c8b846f05
+3
View File
@@ -409,6 +409,9 @@ static void add_game_slide(lv_obj_t *track, const game_tile_def_t *def)
lv_obj_t *txt = lv_label_create(tile);
lv_label_set_text(txt, def->label);
lv_obj_set_style_text_font(txt, &lisael_font_24, 0);
lv_obj_set_width(txt, LV_PCT(90));
lv_label_set_long_mode(txt, LV_LABEL_LONG_WRAP);
lv_obj_set_style_text_align(txt, LV_TEXT_ALIGN_CENTER, 0);
}
lv_obj_t *lisael_screen_games(void)