mod entry max height

This commit is contained in:
thecozies 2025-04-08 18:05:09 -05:00
parent a95be8496b
commit 76d4f1bb95
2 changed files with 4 additions and 2 deletions

View file

@ -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<Container>(this, FlexDirection::Column, JustifyContent::FlexStart);
body_container = context.create_element<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<Label>(body_container, LabelStyle::Normal);

View file

@ -20,7 +20,7 @@ public:
void set_selected(bool selected);
private:
Image *thumbnail_image = nullptr;
Container *body_container = nullptr;
Element *body_container = nullptr;
Label *name_label = nullptr;
Label *description_label = nullptr;
Style checked_style;