Skip to content

Commit 236914c

Browse files
authored
fix: icon rendering problem in ssr mode (#148)
1 parent 535594f commit 236914c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demo/src/components/site_header.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub fn SiteHeader() -> impl IntoView {
9797
font-size: 20px;
9898
}
9999
.demo-header__menu-mobile {
100-
display: none;
100+
display: none !important;
101101
}
102102
.demo-header__menu-popover-mobile {
103103
padding: 0;
@@ -112,10 +112,10 @@ pub fn SiteHeader() -> impl IntoView {
112112
}
113113
@media screen and (max-width: 1200px) {
114114
.demo-header__right-btn {
115-
display: none;
115+
display: none !important;
116116
}
117117
.demo-header__menu-mobile {
118-
display: block;
118+
display: block !important;
119119
}
120120
}
121121
"

thaw/src/icon/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn Icon(
3434
let icon_fill = RwSignal::new(None);
3535
let icon_data = RwSignal::new(None);
3636

37-
create_render_effect(move |_| {
37+
create_isomorphic_effect(move |_| {
3838
let icon = icon.get();
3939

4040
let style = match (style.clone(), icon.style) {

0 commit comments

Comments
 (0)