Fixing issue with single custom datasource being full width in creation modal.

This commit is contained in:
mike12345567 2022-08-17 23:17:10 +01:00
parent 7dfe049ae6
commit 2f23de7b3a
1 changed files with 11 additions and 9 deletions

View File

@ -164,6 +164,7 @@
{/each}
</div>
<Body size="S">Custom data source</Body>
<div class="item-list">
{#each Object.entries(integrations).filter(entry => entry[1].custom) as [integrationType, schema]}
<DatasourceCard
on:selected={evt => selectIntegration(evt.detail)}
@ -172,6 +173,7 @@
{integration}
/>
{/each}
</div>
</Layout>
</ModalContent>
</Modal>
@ -179,7 +181,7 @@
<style>
.item-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
grid-template-columns: repeat(2, minmax(150px, 1fr));
grid-gap: var(--spectrum-alias-grid-baseline);
}