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 SheetScrollWrapper from "./SheetScrollWrapper.svelte"
const { visibleColumns, reorder, dispatch } = getContext("spreadsheet")
const { visibleColumns, reorder } = getContext("spreadsheet")
</script>
<div class="header">
@ -32,11 +32,6 @@
{/each}
</div>
</SheetScrollWrapper>
<div class="add-column" on:click={() => dispatch("add-column")}>
<SheetCell header width={40} center>
<Icon name="Add" size="S" />
</SheetCell>
</div>
</div>
<style>
@ -49,13 +44,4 @@
.row {
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>

View File

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