fix a typo and spacing

This commit is contained in:
Bilux 2022-10-20 23:48:39 +01:00 committed by GitHub
commit c6bbc85716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,7 +201,7 @@
expandable = true;
expanded = expandedRowIds.length === expandableRowIds.length;
}
$: if (radio || batchSelection || OverflowMenu) selectable = true;
$: if (radio || batchSelection || overflowMenu) selectable = true;
$: headerKeys = headers.map(({ key }) => key);
$: tableCellsByRowId = rows.reduce((rows, row) => {
rows[row.id] = headerKeys.map((key, index) => ({
@ -314,7 +314,7 @@
</th>
{/if}
{#if selectable && !batchSelection}
<th scope="col"></th>
<th scope="col" style="width: var(--cds-spacing-08);"></th>
{/if}
{#if batchSelection && !radio && !overflowMenu}
<th scope="col" class:bx--table-column-checkbox="{true}">
@ -458,7 +458,7 @@
}}"
/>
{:else if overflowMenu}
<svelte:component this={OverflowMenu} bind:parentRef={tRef}>
<svelte:component size="sm" this={OverflowMenu} bind:parentRef={tRef}>
<slot name="overflowMenu" row="{row}" />
</svelte:component>
{:else}