The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 02:45 UTC
fix(web): fit provider update text inside sidebar notices (#11034)
Matthew Feroz committed
Sep 10, 2026 at 14:36 UTC
21d744039bf76c072c875886ee497e391a0dd430
1 file changed
+8
-8
apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx
+8
-8
@@ -126,7 +126,7 @@ export function SidebarProviderUpdatePill() {
126
127
return (
128
<div
129
- className={`group/provider-update relative flex h-7 w-full items-center overflow-hidden rounded-lg text-xs font-medium transform-gpu transition-all duration-180 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform ${
129
+ className={`group/provider-update relative flex min-h-7 w-full shrink-0 items-center overflow-hidden rounded-lg text-[11px] leading-4 font-medium transform-gpu transition-all duration-180 ease-[cubic-bezier(0.22,1,0.36,1)] will-change-transform ${
130
PROVIDER_UPDATE_PILL_STYLES[displayedView.tone]
131
} ${
132
exitingKey === displayedView.key
@@ -170,19 +170,19 @@ export function SidebarProviderUpdatePill() {
170
<button
171
type="button"
172
aria-label={displayedView.description}
173
- className="provider-update-main relative z-[1] flex h-full flex-1 items-center gap-2 px-2 text-left"
173
+ className="provider-update-main relative z-[1] flex min-w-0 flex-1 items-center gap-2 px-2 py-1.5 text-left"
174
onClick={openProviderSettings}
175
>
176
{displayedView.tone === "loading" ? (
177
- <Spinner className="size-3.5" />
177
+ <Spinner className="size-3.5 shrink-0" />
178
) : displayedView.tone === "success" ? (
179
- <CircleCheckIcon className="size-3.5" />
179
+ <CircleCheckIcon className="size-3.5 shrink-0" />
180
) : displayedView.tone === "error" ? (
181
- <TriangleAlertIcon className="size-3.5" />
181
+ <TriangleAlertIcon className="size-3.5 shrink-0" />
182
) : (
183
- <DownloadIcon className="size-3.5" />
183
+ <DownloadIcon className="size-3.5 shrink-0" />
184
)}
185
- <span>{displayedView.title}</span>
185
+ <span className="min-w-0 wrap-break-word">{displayedView.title}</span>
186
</button>
187
}
188
/>
@@ -199,7 +199,7 @@ export function SidebarProviderUpdatePill() {
199
className="relative z-[1] mr-1 [--control-icon-color:currentColor] rounded-md text-inherit opacity-70 hover:bg-transparent hover:opacity-100"
200
onClick={() => startExit(displayedView.key, null, displayedView.key)}
201
>
202
- <XIcon className="size-3.5" />
202
+ <XIcon className="size-3.5 shrink-0" />
203
</Button>
204
}
205
/>