center a div
This commit is contained in:
parent
acab2f9003
commit
3a85beeaa5
4 changed files with 14 additions and 14 deletions
|
@ -32,7 +32,7 @@ impl Render for GoToLine {
|
|||
type Element = Div<Self>;
|
||||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
modal(cx).child(div().bg(red()).w(px(100.0)).h(px(100.0)))
|
||||
modal(cx).child(div().m_4().bg(red()).w(px(100.0)).h(px(100.0)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue