Skip to content

Commit 5422ec3

Browse files
authored
Drop the empty bordered panel for no-auth connections (#1181)
The connect modal's auth-method panel always rendered a framed box (border, muted fill, padding). With No authentication selected there are no fields to show, so it appeared as an empty bordered rectangle below the method selector. Only apply the frame when the panel has content.
1 parent 899a7a4 commit 5422ec3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/react/src/components/add-account-modal.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,12 @@ function AddAccountModalView(props: AddAccountModalProps) {
16651665
{dcrActive ? null : (
16661666
<TabsContent
16671667
value={methodId}
1668-
className="mt-0 min-w-0 space-y-5 rounded-md border border-border/60 bg-muted/15 p-4"
1668+
className={cn(
1669+
"mt-0 min-w-0 space-y-5",
1670+
// No-auth renders no fields, so skip the framed box that
1671+
// would otherwise show up as an empty bordered panel.
1672+
isNoAuth ? null : "rounded-md border border-border/60 bg-muted/15 p-4",
1673+
)}
16691674
>
16701675
{method?.placements && !isEnvMethod && singleInput
16711676
? (() => {

0 commit comments

Comments
 (0)