Skip to content

Commit 93f8a78

Browse files
committed
styling: prevent api key tables from becoming too wide
1 parent ab99ee0 commit 93f8a78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontends/dashboard/src/components/ApiKeyGenerateModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const ApiKeyGenerateModal = (props: {
128128
if (props.openModal() && !prevOpen) {
129129
setApiKey("");
130130
setName("");
131-
setRole(1);
131+
setRole(2);
132132
setGenerated(false);
133133
}
134134

frontends/dashboard/src/components/ApiKeys.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -233,19 +233,19 @@ export const ApiKeys = () => {
233233
</div>
234234
</Show>
235235
<Show when={(apiKeysQuery.data?.length || -1) > 0}>
236-
<div class="inline-block min-w-full overflow-x-auto rounded-md border-[0.5px] border-neutral-300 bg-white align-middle shadow-sm">
236+
<div class="inline-block w-full overflow-x-auto rounded-md border-[0.5px] border-neutral-300 bg-white align-middle shadow-sm">
237237
<Show when={table()}>
238238
{(table) => <TanStackTable table={table()} />}
239239
</Show>
240240
</div>
241241
</Show>
242242
</div>
243243
<Show when={userApiKeysQuery.data?.length !== 0}>
244-
<div class="flex items-end justify-between pb-2 pt-2">
244+
<div class="mt-4 flex items-end justify-between pb-2 pt-2">
245245
<div class="text-lg font-medium">User API Keys (deprecated)</div>
246246
</div>
247247
<Show when={(userApiKeysQuery.data?.length || -1) > 0}>
248-
<div class="inline-block min-w-full overflow-x-auto rounded-md border-[0.5px] border-neutral-300 bg-white align-middle shadow-sm">
248+
<div class="inline-block w-full overflow-x-auto rounded-md border-[0.5px] border-neutral-300 bg-white align-middle shadow-sm">
249249
<Show when={userApiKeyTable()}>
250250
{(table) => <TanStackTable table={table()} />}
251251
</Show>

0 commit comments

Comments
 (0)