From 5c8b846f05ee61bf3b1dd63aec46149b0dbcc21d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=27=C3=A9lectron=20rare?= <108685187+electron-rare@users.noreply.github.com> Date: Sun, 21 Jun 2026 10:38:27 +0200 Subject: [PATCH] fix(games): wrap long tile labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prevent "Calme ta colère" from clipping in carousel tiles by constraining label width to 90%, enabling text wrap, and center-aligning. --- main/modes/games.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/modes/games.c b/main/modes/games.c index 4362fad..a2e5bca 100644 --- a/main/modes/games.c +++ b/main/modes/games.c @@ -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)