finally fixed style merging
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@ pub fn todo_app() -> Element {
|
||||
let todo = vec!["Foo", "Bar"];
|
||||
|
||||
rsx! {
|
||||
// text { class: "title", "Todo list app made with OSUI" }
|
||||
// text { class: "title", "{}", "-".repeat(crossterm::terminal::size().unwrap().0 as usize) }
|
||||
text { class: "title", "Todo list app made with OSUI" }
|
||||
text { class: "title", "{}", "-".repeat(crossterm::terminal::size().unwrap().0 as usize) }
|
||||
for (t in todo) {
|
||||
ersx!( button{ class: "todo", on_click: fn(btn: &mut Button, _, _) {
|
||||
btn.class = if btn.class == "todo" {
|
||||
|
||||
Reference in New Issue
Block a user