diff --git a/packages/app/src/session/composer/activity-chips.css b/packages/app/src/session/composer/activity-chips.css index 7fb5a2f705a..b96f7bf9134 100644 --- a/packages/app/src/session/composer/activity-chips.css +++ b/packages/app/src/session/composer/activity-chips.css @@ -8,7 +8,7 @@ /* * The open panel sits just above the capsule, with their inline-start edges aligned, and its rows share the capsule's - * grid: the same hairline and 10px inset put row glyphs on the capsule's glyph, and the same 16px glyph and 8px gap put + * grid: the same hairline and 8px inset put row glyphs on the capsule's glyph, and the same 16px glyph and 6px gap put * row text on the capsule's label. Rows are subgrids of one table, so agent names, descriptions and run times each * line up in a column; descriptions take the remaining width and truncate only when the panel reaches its maximum. */ @@ -37,7 +37,7 @@ display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-content: start; - column-gap: 8px; + column-gap: 6px; } [data-slot="menu-v2-item-content"] > span[dir] { @@ -49,7 +49,7 @@ unicode-bidi: isolate; } - /* With the list's 4px padding, rows inset 10px like the capsule's content, at the end as at the start. */ + /* With the list's 4px padding, rows inset 8px like the capsule's content, at the end as at the start. */ [data-component="menu-v2-item"], [data-slot="menu-v2-item-content"] { display: grid; @@ -59,7 +59,7 @@ } [data-component="menu-v2-item"] { - padding-inline: 6px; + padding-inline: 4px; border-radius: 4px; } diff --git a/packages/app/src/session/composer/activity-chips.tsx b/packages/app/src/session/composer/activity-chips.tsx index 3c7442a22b4..c13e64b9705 100644 --- a/packages/app/src/session/composer/activity-chips.tsx +++ b/packages/app/src/session/composer/activity-chips.tsx @@ -180,7 +180,9 @@ export function SessionActivityChips(props: { class="tabular-nums duration-150 ease-out motion-reduce:animate-none" classList={{ "animate-in fade-in": view().enter }} > - + + + {language.activitySummaryRich(counts(), (text) => ( diff --git a/packages/app/src/session/composer/composer-lane.css b/packages/app/src/session/composer/composer-lane.css index 64dfc1463c9..b2390fd37fb 100644 --- a/packages/app/src/session/composer/composer-lane.css +++ b/packages/app/src/session/composer/composer-lane.css @@ -59,6 +59,12 @@ } } +/* A leading icon sits closer to the edge and to its label than text does. */ +[data-composer-pill]:has(> [data-composer-pill-icon]:first-child) { + gap: 6px; + padding-inline-start: 8px; +} + /* The popover a pill opens, just above it. */ [data-composer-pill-panel] { max-width: calc(100vw - 56px); diff --git a/packages/app/src/session/composer/plugin-pills.tsx b/packages/app/src/session/composer/plugin-pills.tsx index 2b4c2328caf..0875bca4fa4 100644 --- a/packages/app/src/session/composer/plugin-pills.tsx +++ b/packages/app/src/session/composer/plugin-pills.tsx @@ -193,7 +193,11 @@ function Content(props: { }> {(icon) => ( // Its own contribution: an icon that throws shows nothing and the pill keeps working. - + {() => icon()(props.input)} )} @@ -209,11 +213,13 @@ function PillIcon(props: { name?: IconName; tone?: ComposerPillTone }) { return ( {(name) => ( - + + + )} ) diff --git a/packages/app/src/session/composer/todo-pill.css b/packages/app/src/session/composer/todo-pill.css index 3b17a05e586..ef879ee0bc2 100644 --- a/packages/app/src/session/composer/todo-pill.css +++ b/packages/app/src/session/composer/todo-pill.css @@ -1,8 +1,3 @@ -[data-composer-pill][data-slot="session-todo-pill"] { - gap: 6px; - padding-inline-start: 8px; -} - [data-composer-pill-panel][data-slot="session-todo-panel"] { width: max-content; min-width: max(var(--kb-popper-anchor-width, 0px), 240px); diff --git a/packages/app/src/session/composer/todo-pill.tsx b/packages/app/src/session/composer/todo-pill.tsx index 63eaafce2be..fca1ba39ade 100644 --- a/packages/app/src/session/composer/todo-pill.tsx +++ b/packages/app/src/session/composer/todo-pill.tsx @@ -44,7 +44,9 @@ export function SessionTodoPill(props: { todos: readonly Todo[]; defaultOpen?: b {(todo) => ( <> - + + + {todo().content}