Add several missing style attributes in iced_web.
This commit is contained in:
parent
0f2e20f5e5
commit
95988e8e25
5 changed files with 26 additions and 7 deletions
|
|
@ -128,6 +128,8 @@ where
|
|||
use dodrio::builder::*;
|
||||
use wasm_bindgen::JsCast;
|
||||
|
||||
let width = style::length(self.width);
|
||||
let max_width = style::length(self.max_width);
|
||||
let padding_class =
|
||||
style_sheet.insert(bump, Style::Padding(self.padding));
|
||||
|
||||
|
|
@ -143,7 +145,9 @@ where
|
|||
"style",
|
||||
bumpalo::format!(
|
||||
in bump,
|
||||
"font-size: {}px",
|
||||
"width: {}; max-width: {}; font-size: {}px",
|
||||
width,
|
||||
max_width,
|
||||
self.size.unwrap_or(20)
|
||||
)
|
||||
.into_bump_str(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue