diagram_panel.rs
This commit is contained in:
parent
d291e84f61
commit
c1b0eb33bf
2 changed files with 84 additions and 38 deletions
24
frontend/src/diagram_panel.rs
Normal file
24
frontend/src/diagram_panel.rs
Normal file
|
@ -0,0 +1,24 @@
|
|||
use zoon::*;
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct DiagramPanel {
|
||||
}
|
||||
|
||||
impl DiagramPanel {
|
||||
pub fn new(
|
||||
) -> impl Element {
|
||||
Self {
|
||||
}
|
||||
.root()
|
||||
}
|
||||
|
||||
fn root(&self) -> impl Element {
|
||||
Column::new()
|
||||
.s(Padding::all(20))
|
||||
.s(Scrollbars::y_and_clip_x())
|
||||
.s(Width::fill())
|
||||
.s(Height::fill())
|
||||
.s(Gap::new().y(20))
|
||||
.item("Diagram panel")
|
||||
}
|
||||
}
|
Reference in a new issue