Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ script_mod! {
}
bot_binding_modal := Modal {
content +: {
height: Fill,
width: Fill,
align: Align{x: 0.5, y: 0.5},
bot_binding_modal_inner := BotBindingModal {}
}
}
Expand Down
12 changes: 9 additions & 3 deletions src/home/bot_binding_modal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@ script_mod! {
}

mod.widgets.BotBindingModal = #(BotBindingModal::register_widget(vm)) {
width: Fit
height: Fit
width: Fill { max: 1000 }
// TODO: i'd like for this height to be Fit with a max of Rel { base: Full, factor: 0.90 },
// but Makepad doesn't allow Fit views with a max to be scrolled.
height: Fill // { max: 1400 }
margin: 40,
align: Align{x: 0.5, y: 0}
flow: Down
padding: Inset{top: 20, right: 25, bottom: 20, left: 25}

RoundedView {
width: 448
width: Fill
height: Fit
align: Align{x: 0.5}
flow: Down
Expand Down
Loading