Fix: splitted editor and debug columns
This commit is contained in:
parent
346d4ed290
commit
dd0f3d883e
1 changed files with 9 additions and 8 deletions
|
|
@ -48,14 +48,14 @@ fn ui() -> impl Scene {
|
|||
Node {
|
||||
width: percent(100),
|
||||
height: percent(100),
|
||||
display: Display::Flex,
|
||||
align_items: AlignItems::Start,
|
||||
justify_content: JustifyContent::Start,
|
||||
display: Display::Flex,
|
||||
flex_direction: FlexDirection::Row,
|
||||
column_gap: px(8)
|
||||
}
|
||||
Children [
|
||||
debug_column()
|
||||
debug_column(),
|
||||
editor_column()
|
||||
]
|
||||
}
|
||||
|
|
@ -63,6 +63,9 @@ fn ui() -> impl Scene {
|
|||
|
||||
fn debug_column() -> impl Scene {
|
||||
bsn! {
|
||||
pane()
|
||||
pane_header()
|
||||
pane_body()
|
||||
Node {
|
||||
display: Display::Flex,
|
||||
flex_direction: FlexDirection::Column,
|
||||
|
|
@ -73,9 +76,6 @@ fn debug_column() -> impl Scene {
|
|||
width: px(256),
|
||||
min_width: px(256),
|
||||
}
|
||||
pane()
|
||||
pane_header()
|
||||
pane_body()
|
||||
Children [
|
||||
water_amount_label(),
|
||||
pause_button(),
|
||||
|
|
@ -86,6 +86,9 @@ fn debug_column() -> impl Scene {
|
|||
|
||||
fn editor_column() -> impl Scene {
|
||||
bsn! {
|
||||
pane()
|
||||
pane_header()
|
||||
pane_body()
|
||||
Node {
|
||||
display: Display::Flex,
|
||||
flex_direction: FlexDirection::Column,
|
||||
|
|
@ -96,9 +99,6 @@ fn editor_column() -> impl Scene {
|
|||
width: px(256),
|
||||
min_width: px(256),
|
||||
}
|
||||
pane()
|
||||
pane_header()
|
||||
pane_body()
|
||||
Children [
|
||||
label("Tools")
|
||||
ToolLabel,
|
||||
|
|
@ -172,6 +172,7 @@ fn simulation_speed() -> impl Scene {
|
|||
SpeedLabel
|
||||
Node {
|
||||
justify_self: JustifySelf::Stretch
|
||||
align_self: AlignSelf::Center,
|
||||
},
|
||||
@FeathersButton {
|
||||
@caption: bsn! { label(">>") }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue