@@ -174,7 +174,8 @@ function providerEnvironmentDetail(environment: EnvironmentPresentation): string
174174const 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.
177- const providerCardHeightClassName = "lg:h-[min(44rem,calc(100dvh-11rem))] lg:min-h-[32rem]" ;
177+ const providerCardHeightClassName =
178+ "@min-[48rem]/providers:h-[min(44rem,calc(100dvh-11rem))] @min-[48rem]/providers:min-h-[32rem]" ;
178179
179180/**
180181 * Same chrome as the provider editor (section heading, floating device tabs,
@@ -271,7 +272,7 @@ interface ProviderSettingsTarget {
271272
272273export function ProviderSettingsPanel ( target : ProviderSettingsTarget ) {
273274 return (
274- < SettingsPageContainer width = "wide" className = "gap-8" >
275+ < SettingsPageContainer width = "wide" className = "@container/providers gap-8" >
275276 < ProviderSettingsPanelContent
276277 key = { `${ target . environmentId ?? "" } :${ target . instanceId ?? "" } ` }
277278 { ...target }
@@ -1054,20 +1055,24 @@ export function EnvironmentProviderSettings({
10541055 className = { cn (
10551056 providerCardClassName ,
10561057 providerCardHeightClassName ,
1057- "overflow-hidden lg :grid lg :grid-cols-[17rem_minmax(0,1fr)]" ,
1058+ "overflow-hidden @min-[48rem]/providers :grid @min-[48rem]/providers :grid-cols-[17rem_minmax(0,1fr)]" ,
10581059 ) }
10591060 >
1060- < div className = "border-b border-border/60 bg-muted/10 lg:flex lg:min-h-0 lg:flex-col lg:border-r lg:border-b-0" >
1061- < ScrollArea scrollFade chainVerticalScroll className = "lg:min-h-0 lg:flex-1" >
1061+ < div className = "border-b border-border/60 bg-muted/10 @min-[48rem]/providers:flex @min-[48rem]/providers:min-h-0 @min-[48rem]/providers:flex-col @min-[48rem]/providers:border-r @min-[48rem]/providers:border-b-0" >
1062+ < ScrollArea
1063+ scrollFade
1064+ chainVerticalScroll
1065+ className = "@min-[48rem]/providers:min-h-0 @min-[48rem]/providers:flex-1"
1066+ >
10621067 < div className = "divide-y divide-border/50" >
10631068 { rows . map ( ( row ) => renderProviderInstance ( row , "list" ) ) }
10641069 </ div >
10651070 </ ScrollArea >
10661071 </ div >
10671072
1068- < div className = "min-w-0 lg :min-h-0" >
1073+ < div className = "min-w-0 @min-[48rem]/providers :min-h-0" >
10691074 { selectedRow ? (
1070- < ScrollArea scrollFade chainVerticalScroll className = "lg :h-full" >
1075+ < ScrollArea scrollFade chainVerticalScroll className = "@min-[48rem]/providers :h-full" >
10711076 < div className = "space-y-6 p-4" > { renderProviderInstance ( selectedRow , "editor" ) } </ div >
10721077 </ ScrollArea >
10731078 ) : (
0 commit comments