diff --git a/demo/src/components/site_header.rs b/demo/src/components/site_header.rs index 6e0764f..e1a413a 100644 --- a/demo/src/components/site_header.rs +++ b/demo/src/components/site_header.rs @@ -97,7 +97,7 @@ pub fn SiteHeader() -> impl IntoView { font-size: 20px; } .demo-header__menu-mobile { - display: none; + display: none !important; } .demo-header__menu-popover-mobile { padding: 0; @@ -112,10 +112,10 @@ pub fn SiteHeader() -> impl IntoView { } @media screen and (max-width: 1200px) { .demo-header__right-btn { - display: none; + display: none !important; } .demo-header__menu-mobile { - display: block; + display: block !important; } } " diff --git a/thaw/src/icon/mod.rs b/thaw/src/icon/mod.rs index a09b372..be76bc8 100644 --- a/thaw/src/icon/mod.rs +++ b/thaw/src/icon/mod.rs @@ -34,7 +34,7 @@ pub fn Icon( let icon_fill = RwSignal::new(None); let icon_data = RwSignal::new(None); - create_render_effect(move |_| { + create_isomorphic_effect(move |_| { let icon = icon.get(); let style = match (style.clone(), icon.style) {