fix root node layout
This commit is contained in:
1 parent
e6a11f50dd
commit
a823b45af9
3 files changed
+20
-17
No files matched your search
@@ -23,8 +23,8 @@ fn Button(cx: Scope<ButtonProps>) -> Element {
|
||||
|
||||
cx.render(rsx! {
|
||||
div{
|
||||
width: "20px",
|
||||
height: "5px",
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
background_color: "{color}",
|
||||
tabindex: "{cx.props.layer}",
|
||||
onkeydown: |e| {
|
||||
@@ -70,8 +70,8 @@ fn app(cx: Scope) -> Element {
|
||||
if (x + y) % 2 == 0{
|
||||
rsx!{
|
||||
div{
|
||||
width: "20px",
|
||||
height: "5px",
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
background_color: "rgb(100, 100, 100)",
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user