diff --git a/Cargo.lock b/Cargo.lock index f50c0c1..4725996 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,7 +59,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "claude-code-usage-bubble" -version = "0.3.1" +version = "0.3.2" dependencies = [ "dirs", "embed-resource", diff --git a/Cargo.toml b/Cargo.toml index ba6b634..eba5a56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "claude-code-usage-bubble" -version = "0.3.1" +version = "0.3.2" edition = "2021" license = "Apache-2.0" description = "Floating bubble showing Claude Code and Codex usage on Windows" diff --git a/src/bubble.rs b/src/bubble.rs index e4964ea..578bb7c 100644 --- a/src/bubble.rs +++ b/src/bubble.rs @@ -1054,7 +1054,7 @@ fn compute_bubble_layout(size_logical: i32, dpi: u32, mem_dc: HDC) -> BubbleLayo } }; let tail_bar_right = (tail_countdown_left - pad).max(tail_bar_left + bar_render_min); - let tail_bar_h = scale_to_dpi(5, dpi); + let tail_bar_h = (height_px * 9 / 100).clamp(scale_to_dpi(5, dpi), scale_to_dpi(12, dpi)); let tail_bar_top = (height_px - tail_bar_h) / 2; BubbleLayout {