Skip to content

Commit ec5bb5d

Browse files
committed
fix(runtime): prevent provider status label overflow
1 parent b5d7da1 commit ec5bb5d

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

src/renderer/components/dashboard/CliStatusBanner.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,14 +1036,14 @@ const InstalledBanner = ({
10361036
>
10371037
<div className="col-span-2 flex items-start justify-between gap-3">
10381038
<div className="min-w-0 flex-1">
1039-
<div className="flex items-center gap-2">
1040-
<span className="flex items-center gap-2">
1039+
<div className="flex min-w-0 flex-wrap items-center gap-2">
1040+
<span className="flex min-w-0 items-center gap-2">
10411041
<ProviderBrandLogo
10421042
providerId={provider.providerId}
10431043
className="size-4 shrink-0"
10441044
/>
10451045
<span
1046-
className="text-xs font-medium"
1046+
className="truncate whitespace-nowrap text-xs font-medium"
10471047
style={{ color: 'var(--color-text)' }}
10481048
>
10491049
{provider.providerId === 'opencode'
@@ -1053,15 +1053,15 @@ const InstalledBanner = ({
10531053
{openCodeDashboardChips.map((chip) => (
10541054
<span
10551055
key={chip.label}
1056-
className="rounded bg-[rgba(34,197,94,0.14)] px-1.5 py-px text-[9px] font-medium uppercase tracking-[0.06em] text-[rgb(74,222,128)]"
1056+
className="shrink-0 whitespace-nowrap rounded bg-[rgba(34,197,94,0.14)] px-1.5 py-px text-[9px] font-medium uppercase tracking-[0.06em] text-[rgb(74,222,128)]"
10571057
title={chip.title}
10581058
>
10591059
{chip.label}
10601060
</span>
10611061
))}
10621062
</span>
10631063
<span
1064-
className="text-xs"
1064+
className="whitespace-nowrap text-xs"
10651065
style={{
10661066
color: getProviderStatusColor(statusText, provider.authenticated),
10671067
}}

src/renderer/components/settings/sections/CliStatusSection.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,20 +534,21 @@ export const CliStatusSection = (): React.JSX.Element | null => {
534534
<>
535535
<div className="col-span-2 flex items-start justify-between gap-3">
536536
<div className="min-w-0 flex-1">
537-
<div className="flex items-center gap-2 text-xs">
538-
<span className="flex items-center gap-2">
537+
<div className="flex min-w-0 flex-wrap items-center gap-2 text-xs">
538+
<span className="flex min-w-0 items-center gap-2">
539539
<ProviderBrandLogo
540540
providerId={provider.providerId}
541541
className="size-4 shrink-0"
542542
/>
543543
<span
544-
className="font-medium"
544+
className="truncate whitespace-nowrap font-medium"
545545
style={{ color: 'var(--color-text-secondary)' }}
546546
>
547547
{provider.displayName}
548548
</span>
549549
</span>
550550
<span
551+
className="whitespace-nowrap"
551552
style={{
552553
color: getProviderStatusColor(
553554
statusText,

0 commit comments

Comments
 (0)