Split buttons into left and right sides

This commit is contained in:
Andrew Kingston 2022-04-07 15:32:46 +01:00
parent 430732be90
commit af4d3c0c21
1 changed files with 29 additions and 23 deletions

View File

@ -138,9 +138,7 @@
<CreateViewButton disabled={!hasCols || !hasRows} /> <CreateViewButton disabled={!hasCols || !hasRows} />
{/if} {/if}
</div> </div>
<div class="right-buttons" /> <div class="right-buttons">
</div>
{#if hasCols}
<ManageAccessButton resourceId={$tables.selected?._id} /> <ManageAccessButton resourceId={$tables.selected?._id} />
{#if isUsersTable} {#if isUsersTable}
<EditRolesButton /> <EditRolesButton />
@ -161,7 +159,8 @@
{#key id} {#key id}
<TableFilterButton {schema} on:change={onFilter} /> <TableFilterButton {schema} on:change={onFilter} />
{/key} {/key}
{/if} </div>
</div>
<div slot="placeholder"> <div slot="placeholder">
<Layout gap="S"> <Layout gap="S">
<Heading>Let's create some columns!</Heading> <Heading>Let's create some columns!</Heading>
@ -195,4 +194,11 @@
align-items: center; align-items: center;
margin-top: var(--spacing-xl); margin-top: var(--spacing-xl);
} }
.buttons {
flex: 1 1 auto;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
</style> </style>