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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user