diff --git a/herdr/skillshare/RECIPE.md b/herdr/skillshare/RECIPE.md index c1d33c849..58bf2558a 100644 --- a/herdr/skillshare/RECIPE.md +++ b/herdr/skillshare/RECIPE.md @@ -13,7 +13,7 @@ Left to right, everything as in Herdr's `main` layout, plus two blocks: - **Sidebar**, 268px: Herdr's own brand bar, Spaces, Agents and footer. - **Work column**: the tab bar row, now `tabs` (weight 1) beside a 118px `skillshare-toggle` block. The toggle draws the 16px skillshare mark and "skillshare", on `selected` while the panel shows. Under it the shown tab and Herdr's Files/Changes side panel, then the status bar. - **skillshare panel**, a 400px column (380–720px, the narrowest the tab row fits) right of the work area, top to bottom: - - a 44px header: the mark, "skillshare", a pill with the folder (or "global" outside a project) and the machine, an "Update panel" button when a newer skillshare release is published and nothing is running, the CLI version in `muted`, and a close button; + - a 44px header: the mark, "skillshare", a pill with the folder (or "global" outside a project) and the machine, which shortens with an ellipsis when the row runs out of room, an "Update panel" button when a newer skillshare release is published and nothing is running, the CLI version in `muted`, and a close button; - Overview, Library and Machines tabs, the shown one underlined in `foreground`. At the row's right, a skillshare project gets an All · Project · Global switch that Overview and Library share; outside a project it says "Global". On Machines the same place says when the machines were last checked. - Overview: - a headline with its mark: "Reading skillshare", "Everything is in sync", "n targets need a sync" (or "n resources to sync" when only MCP servers, plugins or hooks wait), or "Syncing n targets"; a primary Sync button while something waits; diff --git a/herdr/skillshare/mods/skillshare/main.js b/herdr/skillshare/mods/skillshare/main.js index 059cb40bb..d9e2ceb74 100644 --- a/herdr/skillshare/mods/skillshare/main.js +++ b/herdr/skillshare/mods/skillshare/main.js @@ -444,7 +444,8 @@ export default class Skillshare extends View { .child(h_flex().h(44).flex_none().pl(14).pr(8).gap(8).items_center() .child(image("mods/skillshare/mark.svg").w(18).h(18).flex_none()) .child(div().flex_none().text_size(S().title).font_semibold().child("skillshare")) - .children([where ? h_flex().min_w(0).child(pill(where, t)) : null].filter(Boolean)) + // The pill gives way first: it shortens with an ellipsis when the update button needs the room. + .children([where ? div().min_w(0).truncate().px(8).py(2).rounded(10).bg(t.selected).text_size(S().label).text_color(t.muted).child(where) : null].filter(Boolean)) .child(div().flex_1()) .when(Boolean(newPanel), (el) => el.child(secondary("panel-update", "Update panel", t, () => openDialog({ width: 440, height: 250, props: { role: "panelupdate", from: VERSION, to: newPanel } }), { h: 24, px: 8, size: S().label }))) .when(Boolean(this.version), (el) => el.child(div().flex_none().text_size(S().secondary).text_color(t.muted).child(`v${String(this.version).replace(/^v/, "")}`))) diff --git a/herdr/skillshare/panels.png b/herdr/skillshare/panels.png index 1cbb5deab..7904b453d 100644 Binary files a/herdr/skillshare/panels.png and b/herdr/skillshare/panels.png differ