diff --git a/frontend/src/lib/components/copilot/chat/ChatCollapsibleCard.svelte b/frontend/src/lib/components/copilot/chat/ChatCollapsibleCard.svelte
index f474260700..d6b93cceed 100644
--- a/frontend/src/lib/components/copilot/chat/ChatCollapsibleCard.svelte
+++ b/frontend/src/lib/components/copilot/chat/ChatCollapsibleCard.svelte
@@ -6,9 +6,10 @@
interface Props {
label: string
- /** Set before the label, in the receding weight: the part of the heading that is grammar
- * rather than subject, so what the row is actually about is what reads first. Joined into
- * one accessible name, since the two halves are one sentence. */
+ /** Set before the label, holding this component's own label weight while `labelClass`
+ * emphasises the label alone: the part of the heading that is grammar rather than subject
+ * stays put, and only what the row is about is lifted. Joined into one accessible name,
+ * since the two halves are one sentence. */
labelPrefix?: string
expanded: boolean
onToggle: () => void
@@ -58,7 +59,7 @@
highlight && 'text-emphasis'
)}
>
- {#if labelPrefix}{labelPrefix}{labelPrefix} {/if}{label}
{/snippet}
diff --git a/frontend/src/lib/components/copilot/chat/RunScriptCard.svelte b/frontend/src/lib/components/copilot/chat/RunScriptCard.svelte
index 5d70303511..a234a87872 100644
--- a/frontend/src/lib/components/copilot/chat/RunScriptCard.svelte
+++ b/frontend/src/lib/components/copilot/chat/RunScriptCard.svelte
@@ -310,8 +310,8 @@
+ the weight the selected tab has while the verb keeps the row's ordinary one. font-main
+ because a name is UI text: the row around it is font-mono, right for a path, wrong here. -->