1+ import { SettingsGroup } from "./SettingsGroup" ;
12import { RefreshIcon } from "~/components/ui/refresh-icon" ;
23import { useAtomValue } from "@effect/atom-react" ;
34import { connectionStatusTitle } from "@t3tools/client-runtime/connection" ;
@@ -171,7 +172,6 @@ function providerEnvironmentDetail(environment: EnvironmentPresentation): string
171172 return environment . displayUrl ?? "Remote device" ;
172173}
173174
174- const providerCardClassName = "rounded-xl border border-border/60 bg-card/40 shadow-xs/5" ;
175175// Shared by the editor grid and the placeholder states so switching devices
176176// never changes the card's footprint.
177177const providerCardHeightClassName =
@@ -199,12 +199,9 @@ function ProviderSettingsPlaceholder({
199199 { deviceTabs ? (
200200 < div className = "flex min-h-11 min-w-0 items-center px-3 sm:px-4" > { deviceTabs } </ div >
201201 ) : null }
202- < div
203- className = { cn (
204- providerCardClassName ,
205- providerCardHeightClassName ,
206- "flex overflow-x-hidden overflow-y-auto" ,
207- ) }
202+ < SettingsGroup
203+ divided = { false }
204+ className = { cn ( providerCardHeightClassName , "flex overflow-x-hidden overflow-y-auto" ) }
208205 >
209206 < Empty className = "min-h-88" >
210207 < EmptyMedia variant = "icon" > { icon } </ EmptyMedia >
@@ -214,7 +211,7 @@ function ProviderSettingsPlaceholder({
214211 </ EmptyHeader >
215212 { children ? < EmptyContent className = "max-w-xl" > { children } </ EmptyContent > : null }
216213 </ Empty >
217- </ div >
214+ </ SettingsGroup >
218215 </ SettingsSection >
219216 ) ;
220217}
@@ -1044,16 +1041,16 @@ export function EnvironmentProviderSettings({
10441041 </ div >
10451042 </ div >
10461043 { readOnly ? (
1047- < div className = { cn ( providerCardClassName , "overflow-hidden" ) } >
1044+ < SettingsGroup divided = { false } className = "overflow-hidden" >
10481045 < SettingsRow
10491046 title = "Limited permissions"
10501047 description = { `This session can view ${ environmentLabel } 's providers but can't change their settings.` }
10511048 />
1052- </ div >
1049+ </ SettingsGroup >
10531050 ) : null }
1054- < div
1051+ < SettingsGroup
1052+ divided = { false }
10551053 className = { cn (
1056- providerCardClassName ,
10571054 providerCardHeightClassName ,
10581055 "overflow-hidden @min-[48rem]/providers:grid @min-[48rem]/providers:grid-cols-[17rem_minmax(0,1fr)]" ,
10591056 ) }
@@ -1083,7 +1080,7 @@ export function EnvironmentProviderSettings({
10831080 </ div >
10841081 ) }
10851082 </ div >
1086- </ div >
1083+ </ SettingsGroup >
10871084 </ SettingsSection >
10881085
10891086 < UsageProviderSettings
0 commit comments