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