Remove add column button

This commit is contained in:
Andrew Kingston 2023-03-03 09:14:38 +00:00
parent 110d5d5a35
commit f1a67a2cc5
2 changed files with 1 additions and 18 deletions

View File

@ -5,7 +5,7 @@
import { getIconForField } from "./utils" import { getIconForField } from "./utils"
import SheetScrollWrapper from "./SheetScrollWrapper.svelte" import SheetScrollWrapper from "./SheetScrollWrapper.svelte"
const { visibleColumns, reorder, dispatch } = getContext("spreadsheet") const { visibleColumns, reorder } = getContext("spreadsheet")
</script> </script>
<div class="header"> <div class="header">
@ -32,11 +32,6 @@
{/each} {/each}
</div> </div>
</SheetScrollWrapper> </SheetScrollWrapper>
<div class="add-column" on:click={() => dispatch("add-column")}>
<SheetCell header width={40} center>
<Icon name="Add" size="S" />
</SheetCell>
</div>
</div> </div>
<style> <style>
@ -49,13 +44,4 @@
.row { .row {
display: flex; display: flex;
} }
.add-column {
width: 40px;
position: absolute;
right: 0;
top: 0;
display: flex;
justify-content: center;
border-left: 2px solid var(--spectrum-global-color-gray-200);
}
</style> </style>

View File

@ -18,7 +18,6 @@
export let API export let API
export let tableId export let tableId
export let allowAddColumns = true
export let allowAddRows = true export let allowAddRows = true
export let allowSelectRows = true export let allowSelectRows = true
export let filter export let filter
@ -33,7 +32,6 @@
tableId, tableId,
filter, filter,
allowAddRows, allowAddRows,
allowAddColumns,
allowSelectRows, allowSelectRows,
}) })
@ -58,7 +56,6 @@
$: config.set({ $: config.set({
tableId, tableId,
filter, filter,
allowAddColumns,
allowAddRows, allowAddRows,
allowSelectRows, allowSelectRows,
}) })