From 52f8c40b86a545d5098004f26be5f1da91bf2aaa Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Tue, 28 Oct 2025 18:56:12 +0100 Subject: [PATCH] Fix title bar layout constraints to prevent text disappearing - Set fixed width (15 chars) for left side to prevent chunk collapse - Resolves issue where "cm-dashboard" text would flash and disappear - Ensures consistent visibility of title text in dynamic status bar - Bump version to v0.1.37 --- agent/Cargo.toml | 2 +- dashboard/Cargo.toml | 2 +- dashboard/src/ui/mod.rs | 2 +- shared/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/agent/Cargo.toml b/agent/Cargo.toml index 0d623e9..a25a58b 100644 --- a/agent/Cargo.toml +++ b/agent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-agent" -version = "0.1.36" +version = "0.1.37" edition = "2021" [dependencies] diff --git a/dashboard/Cargo.toml b/dashboard/Cargo.toml index 5635fdc..f02e645 100644 --- a/dashboard/Cargo.toml +++ b/dashboard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard" -version = "0.1.36" +version = "0.1.37" edition = "2021" [dependencies] diff --git a/dashboard/src/ui/mod.rs b/dashboard/src/ui/mod.rs index 34ccc59..e24c91d 100644 --- a/dashboard/src/ui/mod.rs +++ b/dashboard/src/ui/mod.rs @@ -555,7 +555,7 @@ impl TuiApp { // Split the title bar into left and right sections let chunks = Layout::default() .direction(Direction::Horizontal) - .constraints([Constraint::Min(0), Constraint::Min(0)]) + .constraints([Constraint::Length(15), Constraint::Min(0)]) .split(area); // Left side: "cm-dashboard" text diff --git a/shared/Cargo.toml b/shared/Cargo.toml index 2e09343..8595567 100644 --- a/shared/Cargo.toml +++ b/shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cm-dashboard-shared" -version = "0.1.36" +version = "0.1.37" edition = "2021" [dependencies]