From 76d4f1bb95d799ff3387c51b27ad348b06c83580 Mon Sep 17 00:00:00 2001 From: thecozies <79979276+thecozies@users.noreply.github.com> Date: Tue, 8 Apr 2025 18:05:09 -0500 Subject: [PATCH] mod entry max height --- src/ui/ui_mod_menu.cpp | 4 +++- src/ui/ui_mod_menu.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/ui_mod_menu.cpp b/src/ui/ui_mod_menu.cpp index e21dc1b..5cc66ad 100644 --- a/src/ui/ui_mod_menu.cpp +++ b/src/ui/ui_mod_menu.cpp @@ -60,11 +60,13 @@ ModEntryView::ModEntryView(Element *parent) : Element(parent) { thumbnail_image->set_background_color(Color{ 190, 184, 219, 25 }); - body_container = context.create_element(this, FlexDirection::Column, JustifyContent::FlexStart); + body_container = context.create_element(this); body_container->set_width_auto(); body_container->set_margin_left(16.0f); body_container->set_padding_top(8.0f); body_container->set_padding_bottom(8.0f); + body_container->set_max_height(modEntryHeight); + body_container->set_overflow_y(Overflow::Hidden); { name_label = context.create_element