diff --git a/web/src/components/block.rs b/web/src/components/block.rs index 1d155f8..969da3a 100644 --- a/web/src/components/block.rs +++ b/web/src/components/block.rs @@ -17,7 +17,7 @@ pub fn Block(props: &BlockProps) -> Html { let fg = style("background-color", &props.foreground.css()); html! { -
+
} diff --git a/web/src/components/grid.rs b/web/src/components/grid.rs index 28385d2..890443b 100644 --- a/web/src/components/grid.rs +++ b/web/src/components/grid.rs @@ -25,7 +25,7 @@ pub fn Grid(props: &GridProps) -> Html { let foreground = props.next[(r, c)]; children.push(html! { - + }); } } diff --git a/web/src/pages/tiles.rs b/web/src/pages/tiles.rs index b0aca0b..db2a91e 100644 --- a/web/src/pages/tiles.rs +++ b/web/src/pages/tiles.rs @@ -44,14 +44,7 @@ pub fn Tiles() -> Html { } }); - use_body_class(vec![ - "flex", - "flex-row", - "h-screen", - "w-screen", - "items-center", - "justify-center", - ]); + use_body_class(vec!["h-screen", "w-screen"]); tracing::debug!({ ?seed }, "Tiles"); tracing::debug!("\n{}", *update); @@ -77,7 +70,11 @@ pub fn Tiles() -> Html { let inner = match *view_state { ViewState::Run => html! { - +
+
+ +
+
}, ViewState::Edit => html! { @@ -93,18 +90,8 @@ pub fn Tiles() -> Html { ViewState::Edit => html! {}, }; - // I haven't been able to get this layout to be exactly what I want. Ideally, this is a - // full-screen app (never scrolls, fills as much space as possible) _and_ all the simulation's - // grid cells are square. - // - // So far the best I can get is that the whole app is square and fills the screen, which makes - // the grid cells a little wider than they are tall. I don't want to _remove_ the header and - // footer, so I'm giving up for now. - // - // TODO: There must be some way to satisfy both "full screen app" and "square grid cells".... - html! { -
+