mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-10-30 08:03:03 +00:00
mod entry max height
This commit is contained in:
parent
a95be8496b
commit
76d4f1bb95
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue