Skip to content

Commit 7fd1967

Browse files
committed
fix(ui): Restore banner counts hidden by missing CSS width
The banner refactor (24d3546) renamed the count widgets to `#banner-models-count` and `#banner-extras-count` but dropped the `width: auto` rules without replacements. The two `NoMarkupStatic` collapsed to width 0, so the "N models" and "M MCP servers · S skills" lines were rendered invisible. Tag both with `class="banner-meta"` to inherit the existing `width: auto` rule.
1 parent 24d3546 commit 7fd1967

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • albert_code/cli/textual_ui/widgets/banner

‎albert_code/cli/textual_ui/widgets/banner/banner.py‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,13 @@ def compose(self) -> ComposeResult:
4242

4343
with Vertical(id="banner-info"):
4444
with Horizontal(classes="banner-line"):
45-
yield NoMarkupStatic("", id="banner-models-count")
45+
yield NoMarkupStatic(
46+
"", id="banner-models-count", classes="banner-meta"
47+
)
4648
with Horizontal(classes="banner-line"):
47-
yield NoMarkupStatic("", id="banner-extras-count")
49+
yield NoMarkupStatic(
50+
"", id="banner-extras-count", classes="banner-meta"
51+
)
4852
with Horizontal(classes="banner-line"):
4953
yield NoMarkupStatic("Type ", classes="banner-meta")
5054
yield NoMarkupStatic("/help", classes="banner-cmd")
@@ -80,6 +84,5 @@ def _format_extras_count(self) -> str:
8084
m = self.state.mcp_servers_count
8185
s = self.state.skills_count
8286
return (
83-
f"{m} MCP server{'s' if m != 1 else ''}"
84-
f" · {s} skill{'s' if s != 1 else ''}"
87+
f"{m} MCP server{'s' if m != 1 else ''} · {s} skill{'s' if s != 1 else ''}"
8588
)

0 commit comments

Comments
 (0)