Skip to content

Commit f89f3be

Browse files
Fix layout a bit
1 parent 60e1c86 commit f89f3be

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

packages/client/src/admin/ProjectAPIKeys.tsx

+14-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ export default function ProjectAPIKeys({ projectId }: { projectId: number }) {
3737
);
3838

3939
return (
40-
<div className="">
40+
<div>
4141
<div className="shadow sm:rounded-md sm:overflow-hidden">
42-
<div className="px-4 py-5 bg-white sm:p-6 space-y-5">
42+
<div
43+
style={
44+
apiKeysQuery?.data?.project?.apiKeysConnection.nodes.length === 0
45+
? { paddingBottom: 0 }
46+
: {}
47+
}
48+
className={`py-5 px-4 bg-white sm:p-6 space-y-5`}
49+
>
4350
<h3 className="text-lg font-medium leading-6 text-gray-900">
4451
{t("API Keys")}
4552
</h3>
@@ -149,6 +156,11 @@ export default function ProjectAPIKeys({ projectId }: { projectId: number }) {
149156
</div>
150157
)}
151158
<Button
159+
className={
160+
apiKeysQuery.data?.project?.apiKeysConnection?.nodes?.length === 0
161+
? "-top-12"
162+
: ""
163+
}
152164
onClick={() => {
153165
prompt({
154166
placeholder: "e.g. data-access-geoprocessing-prod",

0 commit comments

Comments
 (0)