Skip to content

Commit a6223fd

Browse files
committed
Improved styling of edit panel
1 parent 2d64f09 commit a6223fd

File tree

1 file changed

+9
-7
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables

1 file changed

+9
-7
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.environment-variables/route.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ export default function Page() {
315315
{variable.isSecret ? (
316316
<SimpleTooltip
317317
button={
318-
<div className="flex items-center gap-x-1.5">
318+
<div className="flex items-center gap-x-1">
319319
<LockClosedIcon className="size-3 text-text-dimmed" />
320-
<span className="text-sm text-text-dimmed">Secret</span>
320+
<span className="text-xs text-text-dimmed">Secret</span>
321321
</div>
322322
}
323323
content="This variable is secret and cannot be revealed."
@@ -429,13 +429,15 @@ function EditEnvironmentVariablePanel({
429429
<FormError id={id.errorId}>{id.error}</FormError>
430430
<FormError id={environmentId.errorId}>{environmentId.error}</FormError>
431431
<Fieldset>
432-
<InputGroup fullWidth className="mb-5 mt-2">
432+
<InputGroup fullWidth className="mt-2 gap-0">
433433
<Label>Key</Label>
434-
<InlineCode variant="base" className="pl-1.5">
435-
{variable.key}
436-
</InlineCode>
434+
<CopyableText value={variable.key} className="w-fit font-mono text-sm" />
435+
</InputGroup>
436+
437+
<InputGroup fullWidth>
438+
<Label>Environment</Label>
439+
<EnvironmentCombo environment={variable.environment} className="text-sm" />
437440
</InputGroup>
438-
<EnvironmentCombo environment={variable.environment} className="text-sm" />
439441

440442
<InputGroup fullWidth>
441443
<Label>Value</Label>

0 commit comments

Comments
 (0)