fix: statistics at the top of page

This commit is contained in:
Evan Carroll 2026-01-18 19:31:30 -06:00
parent 44b322371c
commit 15cc1f708f
5 changed files with 147 additions and 96 deletions

View file

@ -42,14 +42,14 @@ pub fn RealmHeader(
realm_description: Option<String>,
scene_name: String,
scene_description: Option<String>,
online_count: i32,
online_count: Signal<i32>,
total_members: i32,
max_capacity: i32,
can_admin: bool,
on_logout: Callback<()>,
) -> impl IntoView {
let stats_tooltip = format!("Members: {} / Max: {}", total_members, max_capacity);
let online_text = format!("{} ONLINE", online_count);
let online_text = move || format!("{} ONLINE", online_count.get());
let admin_url = format!("/admin/realms/{}", realm_slug);
view! {