-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathautorouter.css
More file actions
33 lines (31 loc) · 1.1 KB
/
Copy pathautorouter.css
File metadata and controls
33 lines (31 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* The composer's provider/model picker is owned by bb, so Auto Router restyles
* it from the outside: the real model name is hidden and the label is redrawn
* from `--autorouter-picker-label`. Idle that reads "Auto"; while a submission
* is being routed the page sets the property to the animated selecting text,
* so the status appears on the control whose value is being decided.
*/
.autorouter-composer
button[aria-label^="Provider, model and reasoning"]
> span[title]
> * {
display: none;
}
.autorouter-composer
button[aria-label^="Provider, model and reasoning"]
> span[title]::before {
content: var(--autorouter-picker-label, "Auto");
color: var(--foreground);
/*
* The trigger is `w-fit max-w-full`, so the selecting text is far wider than
* the idle "Auto" and would spill out of a narrow composer. Truncate instead:
* the label degrades to an ellipsis rather than breaking the toolbar row.
*/
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.autorouter-composer button[aria-label^="Provider, model and reasoning"] > svg {
display: none;
}