mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 06:19:22 -05:00
fix: icon rendering problem in ssr mode (#148)
This commit is contained in:
parent
535594f963
commit
236914cf61
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
"
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue