Skip to content

fix(ui): keep Skill Builder Edit button visible with long name/description (closes #261)#262

Merged
initializ-mk merged 2 commits into
mainfrom
fix/skill-builder-edit-btn-clip
Jul 10, 2026
Merged

fix(ui): keep Skill Builder Edit button visible with long name/description (closes #261)#262
initializ-mk merged 2 commits into
mainfrom
fix/skill-builder-edit-btn-clip

Conversation

@initializ-mk

Copy link
Copy Markdown
Contributor

Closes #261.

Problem

In the Skill Builder "Skills attached to this agent" list, a skill whose name + description are long pushed the row's Edit button off the right edge of the left panel, where it was clipped and unreachable.

Root cause

The row already truncates correctly (.sb-custom-skill-info { flex:1; min-width:0 }, .sb-custom-skill-desc { …ellipsis }), so the failure was an ancestor min-width blowout: .skill-builder-left is a 55% grid item (.skill-builder is grid-template-columns: 55% 45%) with the default min-width: auto, so long content forced the track wider than 55%; because the panel is overflow: hidden, the Edit button at the end of the row was clipped rather than scrolled into view.

Fix (CSS only, forge-ui/static/style.css)

  • min-width: 0 on .skill-builder-left — the track now honors its 55% width, so the row's existing ellipsis truncation actually engages.
  • flex-shrink: 0 on .sb-custom-skill-row .btn — the Edit button is never the element that shrinks/clips.
  • min-width: 0 + ellipsis on .sb-custom-skill-name / its <code> — a long name truncates too, so it can't push the description or button.

Verification

go build ./forge-ui/... passes (static assets are go:embeded). Manual check: with a long name+description the Edit button stays fully visible and the name/description truncate within the panel; behavior holds at both the desktop 55%/45% layout and the stacked mobile layout (@media at style.css ~2131).

No automated test — this is a pure CSS layout fix with no Go test surface.

…ption (closes #261)

A long skill name+description pushed the row's Edit button off the clipped left panel. Root cause: .skill-builder-left is a 55% grid item with the default min-width: auto, so long content forced the track wider than 55% and, with overflow: hidden, clipped the button. Fixes: min-width: 0 on .skill-builder-left so the track honors its width and the row's existing ellipsis truncation engages; flex-shrink: 0 on .sb-custom-skill-row .btn so the Edit button never shrinks/clips; and min-width:0 + ellipsis on .sb-custom-skill-name/code so a long name truncates too.
…ut (#261)

First pass fixed the grid track (.skill-builder-left), but the real blowout is one level down: .sb-custom-skills and .provider-banner are flex items in the display:flex .sb-header, and their default min-width:auto lets a long skill description (nowrap) / model name force them past the 55% panel, which overflow:hidden then clips — taking the Edit button and the model name off-screen. Add min-width:0 to both, plus ellipsis truncation on the model span and flex-shrink:0 on Settings.
@initializ-mk initializ-mk merged commit 3ce46ca into main Jul 10, 2026
9 checks passed
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.

Skill Builder: Edit button clipped off-screen when a skill's name + description are long

1 participant