fix(ui): use blocks for show conditions to satisfy macro parser
This commit is contained in:
@@ -128,7 +128,7 @@ pub fn StatusBar() -> impl IntoView {
|
|||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3" />
|
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3" />
|
||||||
</svg>
|
</svg>
|
||||||
<span class="font-mono">{move || format_speed(stats.get().down_rate)}</span>
|
<span class="font-mono">{move || format_speed(stats.get().down_rate)}</span>
|
||||||
<Show when=move || stats.get().down_limit.unwrap_or(0) > 0 fallback=|| ()>
|
<Show when=move || { stats.get().down_limit.unwrap_or(0) > 0 } fallback=|| ()>
|
||||||
<span class="text-[10px] opacity-60">
|
<span class="text-[10px] opacity-60">
|
||||||
{move || format!("(Limit: {})", format_speed(stats.get().down_limit.unwrap_or(0)))}
|
{move || format!("(Limit: {})", format_speed(stats.get().down_limit.unwrap_or(0)))}
|
||||||
</span>
|
</span>
|
||||||
@@ -192,7 +192,7 @@ pub fn StatusBar() -> impl IntoView {
|
|||||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15 11.25l-3-3m0 0l-3 3m3-3v7.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
<path stroke-linecap="round" stroke-linejoin="round" d="M15 11.25l-3-3m0 0l-3 3m3-3v7.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
||||||
</svg>
|
</svg>
|
||||||
<span class="font-mono">{move || format_speed(stats.get().up_rate)}</span>
|
<span class="font-mono">{move || format_speed(stats.get().up_rate)}</span>
|
||||||
<Show when=move || stats.get().up_limit.unwrap_or(0) > 0 fallback=|| ()>
|
<Show when=move || { stats.get().up_limit.unwrap_or(0) > 0 } fallback=|| ()>
|
||||||
<span class="text-[10px] opacity-60">
|
<span class="text-[10px] opacity-60">
|
||||||
{move || format!("(Limit: {})", format_speed(stats.get().up_limit.unwrap_or(0)))}
|
{move || format!("(Limit: {})", format_speed(stats.get().up_limit.unwrap_or(0)))}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user