Make example work on web and update READMEs

This commit is contained in:
Héctor Ramón Jiménez 2019-09-21 13:38:14 +02:00
parent eda1048dbc
commit 86dede4c4c
13 changed files with 101 additions and 32 deletions

View file

@ -14,6 +14,7 @@ impl<'a, Message> Widget<Message> for Text {
let content = bumpalo::format!(in bump, "{}", self.content);
let size = bumpalo::format!(in bump, "font-size: {}px", self.size.unwrap_or(20));
// TODO: Complete styling
p(bump)
.attr("style", size.into_bump_str())
.children(vec![text(content.into_bump_str())])