Skip to content

Commit ac162ec

Browse files
committed
Improved the API keys sticky menu behaviour
1 parent afa5636 commit ac162ec

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

apps/webapp/app/components/environments/RegenerateApiKeyModal.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ export function RegenerateApiKeyModal({ id, title }: ModalProps) {
2929
<Dialog open={open} onOpenChange={setOpen}>
3030
<DialogTrigger asChild>
3131
<Button
32-
variant="minimal/small"
33-
leadingIconClassName="text-text-dimmed"
32+
variant="small-menu-item"
33+
fullWidth
34+
textAlignLeft
35+
leadingIconClassName="text-success"
3436
LeadingIcon={ArrowPathIcon}
3537
>
3638
Regenerate…

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.apikeys/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export default function Page() {
115115
<TableCell>{environment.environmentVariableCount}</TableCell>
116116
<TableCellMenu
117117
isSticky
118-
hiddenButtons={
118+
popoverContent={
119119
<RegenerateApiKeyModal
120120
id={environment.id}
121121
title={environmentTitle(environment)}

0 commit comments

Comments
 (0)