From 5cbadabc27dfd129c1d732e72a31396f0dc2e01e Mon Sep 17 00:00:00 2001
From: AlexRV12 <71396855+AlexRV12@users.noreply.github.com>
Date: Thu, 3 Sep 2026 15:02:41 +0200
Subject: [PATCH] fix: leave the run card's verb at the row's own weight
---
.../components/copilot/chat/ChatCollapsibleCard.svelte | 9 +++++----
.../src/lib/components/copilot/chat/RunScriptCard.svelte | 4 ++--
2 files changed, 7 insertions(+), 6 deletions(-)
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. -->