| ... | ... | @@ -191,8 +191,10 @@ function ProviderSettingsPlaceholder({ |
| 191 | 191 | readonly children?: ReactNode; |
| 192 | 192 | }) { |
| 193 | 193 | return ( |
| 194 | | <SettingsSection {...searchableSetting("providers")} variant="plain"> |
| 195 | | {deviceTabs} |
| 194 | <SettingsSection {...searchableSetting("providers")} hideTitle variant="plain"> |
| 195 | {deviceTabs ? ( |
| 196 | <div className="flex min-h-11 min-w-0 items-center px-3 sm:px-4">{deviceTabs}</div> |
| 197 | ) : null} |
| 196 | 198 | <div |
| 197 | 199 | className={cn( |
| 198 | 200 | providerCardClassName, |
| ... | ... | @@ -323,7 +325,7 @@ function ProviderSettingsPanelContent(target: ProviderSettingsTarget) { |
| 323 | 325 | options.length === 1 && options[0]?.entry.target._tag === "PrimaryConnectionTarget"; |
| 324 | 326 | const deviceTabs = |
| 325 | 327 | !onlyPrimaryDevice && options.length > 0 ? ( |
| 326 | | <ScrollArea hideScrollbars scrollFade className="mx-3 h-11 min-w-0 rounded-none sm:mx-4"> |
| 328 | <ScrollArea hideScrollbars scrollFade className="h-11 min-w-0 flex-1 rounded-none"> |
| 327 | 329 | <div role="group" aria-label="Devices" className="flex h-full w-max min-w-full px-1"> |
| 328 | 330 | {options.map((environment) => { |
| 329 | 331 | const machine = resolveEnvironmentMachineKind(environment.serverConfig); |
| ... | ... | @@ -977,11 +979,10 @@ export function EnvironmentProviderSettings({ |
| 977 | 979 | |
| 978 | 980 | return ( |
| 979 | 981 | <> |
| 980 | | <SettingsSection |
| 981 | | {...searchableSetting("providers")} |
| 982 | | variant="plain" |
| 983 | | headerAction={ |
| 984 | | <div className="flex min-w-0 items-center gap-2"> |
| 982 | <SettingsSection {...searchableSetting("providers")} hideTitle variant="plain"> |
| 983 | <div className="flex min-h-11 min-w-0 items-center gap-2 px-3 sm:px-4"> |
| 984 | {deviceTabs} |
| 985 | <div className="ml-auto flex min-w-0 shrink-0 items-center gap-2"> |
| 985 | 986 | {readOnly ? ( |
| 986 | 987 | <span className="min-w-0 truncate text-xs text-muted-foreground"> |
| 987 | 988 | <ProviderLastChecked lastCheckedAt={lastCheckedAt} /> |
| ... | ... | @@ -1030,9 +1031,7 @@ export function EnvironmentProviderSettings({ |
| 1030 | 1031 | </> |
| 1031 | 1032 | )} |
| 1032 | 1033 | </div> |
| 1033 | | } |
| 1034 | | > |
| 1035 | | {deviceTabs} |
| 1034 | </div> |
| 1036 | 1035 | {readOnly ? ( |
| 1037 | 1036 | <div className={cn(providerCardClassName, "overflow-hidden")}> |
| 1038 | 1037 | <SettingsRow |