Skip to content

Commit e6de253

Browse files
committed
Env var page now using the new popover menu
1 parent 3fe3792 commit e6de253

File tree

1 file changed

+15
-8
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.environment-variables

1 file changed

+15
-8
lines changed

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

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,19 @@ export default function Page() {
246246
</TableCell>
247247
);
248248
})}
249-
<TableCellMenu isSticky>
250-
<EditEnvironmentVariablePanel
251-
environments={environments}
252-
variable={variable}
253-
revealAll={revealAll}
254-
/>
255-
<DeleteEnvironmentVariableButton variable={variable} />
256-
</TableCellMenu>
249+
<TableCellMenu
250+
isSticky
251+
popoverContent={
252+
<>
253+
<EditEnvironmentVariablePanel
254+
environments={environments}
255+
variable={variable}
256+
revealAll={revealAll}
257+
/>
258+
<DeleteEnvironmentVariableButton variable={variable} />
259+
</>
260+
}
261+
></TableCellMenu>
257262
</TableRow>
258263
))
259264
) : (
@@ -470,6 +475,8 @@ function DeleteEnvironmentVariableButton({
470475
value="delete"
471476
type="submit"
472477
variant="small-menu-item"
478+
fullWidth
479+
textAlignLeft
473480
LeadingIcon={TrashIcon}
474481
leadingIconClassName="text-rose-500"
475482
className="text-xs"

0 commit comments

Comments
 (0)