mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-06 08:01:35 +00:00
fix: leave the run card's verb at the row's own weight
This commit is contained in:
@@ -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}<span class="font-normal text-tertiary">{labelPrefix}</span
|
||||
{#if labelPrefix}<span class="font-medium text-secondary">{labelPrefix}</span
|
||||
> {/if}{label}
|
||||
</span>
|
||||
{/snippet}
|
||||
|
||||
@@ -310,8 +310,8 @@
|
||||
<!-- scroll-mb clears the chat's sticky "Waiting for your input" chip so the mount
|
||||
scrollIntoView of the form below leaves the Run button uncovered. -->
|
||||
<!-- The runnable's name is the subject of the row and the verb is grammar, so the name takes
|
||||
the weight the selected tab has and the verb steps back. font-main because a name is UI
|
||||
text: the tool row around it is font-mono, which is right for a path and wrong for this. -->
|
||||
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. -->
|
||||
<ChatCollapsibleCard
|
||||
label={runnableName}
|
||||
labelPrefix={verb}
|
||||
|
||||
Reference in New Issue
Block a user