🚧 Code tweaks
This commit is contained in:
parent
dc4210bcb8
commit
7a9a98347d
3 changed files with 10 additions and 10 deletions
|
|
@ -36,10 +36,10 @@ impl ComponentTrait for Container {
|
|||
fn setup_before_prepare(&mut self, cx: &mut Context) {
|
||||
self.prepend_classes(
|
||||
[
|
||||
self.direction.to_string(),
|
||||
self.wrap_align.to_string(),
|
||||
self.content_justify.to_string(),
|
||||
self.items_align.to_string(),
|
||||
self.direction().to_string(),
|
||||
self.wrap_align().to_string(),
|
||||
self.content_justify().to_string(),
|
||||
self.items_align().to_string(),
|
||||
]
|
||||
.join(" "),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -38,11 +38,11 @@ impl ComponentTrait for Item {
|
|||
self.prepend_classes(
|
||||
[
|
||||
"pt-flex__item".to_owned(),
|
||||
self.item_grow.to_string(),
|
||||
self.item_shrink.to_string(),
|
||||
self.item_size.to_string(),
|
||||
self.item_offset.to_string(),
|
||||
self.item_align.to_string(),
|
||||
self.grow().to_string(),
|
||||
self.shrink().to_string(),
|
||||
self.size().to_string(),
|
||||
self.offset().to_string(),
|
||||
self.align().to_string(),
|
||||
]
|
||||
.join(" "),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ impl ComponentTrait for Icon {
|
|||
|
||||
#[rustfmt::skip]
|
||||
fn setup_before_prepare(&mut self, cx: &mut Context) {
|
||||
if let Some(icon_name) = self.icon_name.get() {
|
||||
if let Some(icon_name) = self.icon_name().get() {
|
||||
self.prepend_classes(
|
||||
concat_string!("bi-", icon_name, " ", self.font_size().to_string()),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue