center a div

This commit is contained in:
Nate Butler 2023-11-07 16:23:41 -05:00
parent acab2f9003
commit 3a85beeaa5
4 changed files with 14 additions and 14 deletions

View file

@ -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)))
}
}