From f178d7c9ca5ea5ada19f6506f484a4424d771c10 Mon Sep 17 00:00:00 2001 From: luoxiao Date: Thu, 16 May 2024 16:18:36 +0800 Subject: [PATCH] feat: clear code --- demo/src/pages/components.rs | 5 ++--- demo_markdown/docs/card/mod.md | 4 +++- thaw/src/card/card.css | 20 -------------------- 3 files changed, 5 insertions(+), 24 deletions(-) diff --git a/demo/src/pages/components.rs b/demo/src/pages/components.rs index 7bff405..65ac9b8 100644 --- a/demo/src/pages/components.rs +++ b/demo/src/pages/components.rs @@ -83,9 +83,9 @@ impl IntoView for MenuGroupOption { let Self { label, children } = self; let children_len = children.len(); view! { - + {format!("{label} ({children_len})")} - + {children.into_iter().map(|v| v.into_view()).collect_view()} }.into_view() } @@ -99,7 +99,6 @@ pub(crate) struct MenuItemOption { impl IntoView for MenuItemOption { fn into_view(self) -> View { let Self { label, value } = self; - // key=value label view! { {label} } } } diff --git a/demo_markdown/docs/card/mod.md b/demo_markdown/docs/card/mod.md index 0f8d937..ba6962f 100644 --- a/demo_markdown/docs/card/mod.md +++ b/demo_markdown/docs/card/mod.md @@ -4,7 +4,9 @@ view! { - "Header" + + "Header""2022-02-22" + "Description" diff --git a/thaw/src/card/card.css b/thaw/src/card/card.css index 6462160..b3b23c5 100644 --- a/thaw/src/card/card.css +++ b/thaw/src/card/card.css @@ -22,23 +22,3 @@ .thaw-card > .thaw-card-preview { margin: 0 calc(var(--thaw-card--size)* -1); } - -.thaw-card__header-extra { - display: flex; - align-items: center; -} -.thaw-card__header-content { - flex: 1; -} -.thaw-card__header, -.thaw-card__content, -.thaw-card__footer { - padding: 12px 28px; -} -.thaw-card__header { - padding: 20px 28px; -} -.thaw-card__header + .thaw-card__content, -.thaw-card__footer { - padding: 0 28px 20px; -} \ No newline at end of file