Skip to content

Commit 6a0acad

Browse files
committed
Add in model tagline
1 parent 3e87c75 commit 6a0acad

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

cli/src/components/freebuff-model-selector.tsx

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,12 @@ export const FreebuffModelSelector: React.FC = () => {
5555
return out
5656
}, [session])
5757

58-
// Pad the trailing hint ("3 ahead", "No wait", tagline) to a fixed width so
58+
// Pad the trailing hint ("3 ahead", "No wait", "…") to a fixed width so
5959
// buttons don't visibly resize when the queue depth ticks down (12 → 9) or
60-
// when the user's selection moves between queues.
60+
// when the user's selection moves between queues. The tagline is shown
61+
// inline with the name now, so it's no longer part of this slot.
6162
const hintWidth = useMemo(
62-
() =>
63-
Math.max(
64-
'No wait'.length,
65-
'999 ahead'.length,
66-
...FREEBUFF_MODELS.map((m) => m.tagline.length),
67-
),
63+
() => Math.max('No wait'.length, '999 ahead'.length),
6864
[],
6965
)
7066

@@ -139,11 +135,7 @@ export const FreebuffModelSelector: React.FC = () => {
139135
const interactable = !pending && !isSelected
140136
const ahead = aheadByModel?.[model.id]
141137
const hint =
142-
ahead === undefined
143-
? model.tagline
144-
: ahead === 0
145-
? 'No wait'
146-
: `${ahead} ahead`
138+
ahead === undefined ? '' : ahead === 0 ? 'No wait' : `${ahead} ahead`
147139

148140
const borderColor = isSelected
149141
? theme.primary
@@ -176,6 +168,7 @@ export const FreebuffModelSelector: React.FC = () => {
176168
>
177169
{model.displayName}
178170
</span>
171+
<span fg={theme.muted}> · {model.tagline}</span>
179172
<span fg={theme.muted}> {hint.padEnd(hintWidth)}</span>
180173
</text>
181174
</Button>

0 commit comments

Comments
 (0)