Skip to content

Commit c9ef098

Browse files
fix(web): fade provider settings scroll edges
The provider instance list and the editor's configuration pane clipped their content hard at the panel edge. Both now scroll inside the shared ScrollArea with its edge fade, like the keybindings table. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent fe229b5 commit c9ef098

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

‎apps/web/src/components/settings/ProviderInstanceCard.tsx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -844,14 +844,16 @@ export function ProviderInstanceCard({
844844
</div>
845845

846846
<div className="lg:min-h-0 lg:flex-1">
847-
<div
848-
className="space-y-5 px-4 py-5 lg:h-full lg:overflow-y-auto"
847+
<ScrollArea
848+
scrollFade
849+
chainVerticalScroll
850+
className="lg:h-full"
849851
hidden={visibleTab !== "configuration"}
850852
>
851853
<div
852854
inert={readOnly}
853855
aria-disabled={readOnly || undefined}
854-
className={cn("space-y-5", readOnly && "opacity-50 select-none")}
856+
className={cn("space-y-5 px-4 py-5", readOnly && "opacity-50 select-none")}
855857
>
856858
<div>
857859
<label htmlFor={`provider-instance-${instanceId}-display-name`} className="block">
@@ -908,7 +910,7 @@ export function ProviderInstanceCard({
908910
</div>
909911
) : null}
910912
</div>
911-
</div>
913+
</ScrollArea>
912914
{driverOption !== undefined ? (
913915
<div
914916
inert={readOnly}

‎apps/web/src/components/settings/ProviderSettingsPanel.tsx‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -881,13 +881,15 @@ export function EnvironmentProviderSettings({
881881
<div className="space-y-1">
882882
<div className="mx-3 overflow-hidden rounded-lg border border-border/70 sm:mx-4 lg:grid lg:h-[min(38rem,calc(100dvh-16rem))] lg:min-h-[30rem] lg:grid-cols-[20rem_minmax(0,1fr)]">
883883
<div className="border-b border-border/70 lg:flex lg:min-h-0 lg:flex-col lg:border-r lg:border-b-0">
884-
<div className="divide-y divide-border/60 lg:min-h-0 lg:flex-1 lg:overflow-y-auto">
885-
{rows.map((row) => (
886-
<div key={row.instanceId} className="p-1">
887-
{renderProviderInstance(row, "list")}
888-
</div>
889-
))}
890-
</div>
884+
<ScrollArea scrollFade chainVerticalScroll className="lg:min-h-0 lg:flex-1">
885+
<div className="divide-y divide-border/60">
886+
{rows.map((row) => (
887+
<div key={row.instanceId} className="p-1">
888+
{renderProviderInstance(row, "list")}
889+
</div>
890+
))}
891+
</div>
892+
</ScrollArea>
891893
</div>
892894

893895
<div className="min-w-0 lg:min-h-0">

0 commit comments

Comments
 (0)