From 3ef452d451559b64b0c0e3ffa528697e34fb7d6d Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Wed, 30 Sep 2026 22:02:33 +0200 Subject: [PATCH] fix: swapped home screen cluster labels to show the cluster name in big text (#898) --- .../src/components/active_cluster_panel.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/oneclient_app/src/components/active_cluster_panel.rs b/packages/oneclient_app/src/components/active_cluster_panel.rs index a4412d65..ba8c702e 100644 --- a/packages/oneclient_app/src/components/active_cluster_panel.rs +++ b/packages/oneclient_app/src/components/active_cluster_panel.rs @@ -74,13 +74,15 @@ impl Component for ActiveClusterPanel { ); }; - let title = format!("{} {}", cluster.mc_version, cluster.mc_loader); - let subtitle = if cluster.user_created { - cluster.name.clone() + let version = format!("{} {}", cluster.mc_version, cluster.mc_loader); + let (title, subtitle) = if cluster.user_created { + (cluster.name.clone(), version) } else { - metadata - .map(|m| m.name) - .unwrap_or_else(|| cluster.name.clone()) + let subtitle = match metadata { + Some(m) => format!("OneClient ยท {}", m.name), + None => "OneClient".to_string(), + }; + (version, subtitle) }; let cluster_id = cluster.id; let syncing = launch_syncing(&launcher, cluster.uses_bundles()); @@ -95,6 +97,9 @@ impl Component for ActiveClusterPanel { .child( label() .text(title) + .width(Size::fill()) + .max_lines(1) + .text_overflow(TextOverflow::Ellipsis) .font_size(56.) .line_height(1.1) .font_weight(FontWeight::BOLD)