Skip to content

fix(ui): agent status bar clipping and compact item layout#14

Merged
Killea merged 2 commits intoKillea:mainfrom
bertheto:fix/agent-status-bar-compact-layout
Mar 1, 2026
Merged

fix(ui): agent status bar clipping and compact item layout#14
Killea merged 2 commits intoKillea:mainfrom
bertheto:fix/agent-status-bar-compact-layout

Conversation

@bertheto
Copy link
Copy Markdown
Contributor

@bertheto bertheto commented Mar 1, 2026

Problem

When agents have been offline for more than one hour, they are shown in a compact mode in the agent status bar. The previous implementation stacked three elements vertically (avatar emoji / offline char / state emoji), making each item ~66px tall. Combined with the fixed height: 56px on the status bar and overflow-y: hidden, items were clipped on top and bottom, making the bar unusable.

Additionally, the ? character used when no offline duration was available provided no meaningful information to the user.

Changes

src/static/index.html

  • Remove BOM character (invalid in UTF-8 HTML documents)
  • Replace height: 56px with min-height: 64px on #agent-status-bar
  • Add align-items: center for proper vertical centering of items
  • Add flex-shrink: 0 to prevent the bar from collapsing
  • Switch overflow-y: hidden to overflow-y: visible to stop clipping
  • Reduce vertical padding from 8px to 6px
  • Bump cache-busting versions for modified JS files

src/static/js/shared-agent-status.js

  • Replace "?" with "∞" when offlineTimeStr is null (duration unknown)
  • Replace "?" fallback with "~" for unexpected time string formats

src/static/js/components/acb-agent-status-item.js

  • Render long-offline items in a single horizontal row using the existing agent-status-emoji-row flex container instead of stacking vertically
  • Add a title tooltip on the offline char: "Offline since unknown time" for , or "Offline {duration}" otherwise

Visual result

Before: items clipped, ? char with no meaning.
After: single-row compact item fits within the bar, with tooltip explains the unknown duration.

bertheto added 2 commits March 1, 2026 12:12
…mprove offline char

- Remove BOM from index.html (invalid in UTF-8 HTML)
- Replace fixed height (56px) with min-height (64px) on #agent-status-bar
- Add align-items: center and flex-shrink: 0 for proper vertical alignment
- Switch overflow-y from hidden to visible to prevent content clipping
- Reduce padding from 8px to 6px vertical for tighter appearance
- Replace "?" with "infinity" symbol for agents with unknown offline duration
- Replace "?" fallback with "~" for unexpected offline time formats
- Bump shared-agent-status.js cache-busting version to v3
Previously, agents offline for more than one hour were displayed in a
vertical stack (avatar emoji / offline char / state emoji), making the
status bar items unnecessarily tall and causing clipping.

This commit renders those items as a single horizontal row using the
existing agent-status-emoji-row flex container, matching the layout
of non-compact items. A tooltip is added to the offline char to clarify
its meaning (e.g. "Offline since unknown time" for the infinity symbol).

- Bump acb-agent-status-item.js cache-busting version to v3
@Killea Killea merged commit 728dc39 into Killea:main Mar 1, 2026
1 check passed
@bertheto bertheto deleted the fix/agent-status-bar-compact-layout branch March 1, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants