diff --git a/apps/web/src/components/settings/ProviderInstanceCard.tsx b/apps/web/src/components/settings/ProviderInstanceCard.tsx
index 66ca0d543938e..7bd356d4ff225 100644
--- a/apps/web/src/components/settings/ProviderInstanceCard.tsx
+++ b/apps/web/src/components/settings/ProviderInstanceCard.tsx
@@ -490,7 +490,7 @@ export function ProviderEnvironmentSection(props: {
{nameInput}
- {source === null ? null :
{source}
}
+ {source}
{removeButton}
diff --git a/apps/web/src/components/settings/SecretSourceInput.tsx b/apps/web/src/components/settings/SecretSourceInput.tsx
index fbfd709cf1d4f..a57f7f22633d1 100644
--- a/apps/web/src/components/settings/SecretSourceInput.tsx
+++ b/apps/web/src/components/settings/SecretSourceInput.tsx
@@ -48,6 +48,10 @@ export function useSecretSources(environmentId: EnvironmentId): ReadonlyArray
({ id, kind: config.kind, label: config.label }));
}
+function SourceIcon(props: { readonly icon: ComponentType<{ readonly className?: string }> }) {
+ return ;
+}
+
function SourceLabel(props: {
readonly icon: ComponentType<{ readonly className?: string }>;
readonly label: string;
@@ -195,13 +199,14 @@ export function SecretSourceInput({
setPendingProvider(next === secret?.provider ? null : next);
}}
>
-
+
- {provider === null ? (
-
- ) : (
-
- )}
+
@@ -232,6 +237,7 @@ export function SecretSourceInput({
{...(input.id !== undefined ? { id: input.id } : {})}
size="sm"
font="mono"
+ className="min-w-0 flex-1"
value={rejectedReference ?? reference}
onCommit={(next) => {
if (next.trim().length === 0) {
@@ -277,7 +283,7 @@ export function SecretSourceInput({
if (source === null) return valueField;
return (
-
{source}
+ {source}
{valueField}
);