1
0
Fork 0
mirror of synced 2024-09-10 06:26:02 +12:00

Fix new column button layout and remove logs

This commit is contained in:
Andrew Kingston 2024-06-24 13:49:36 +01:00
parent e05c46435f
commit 6acffc7e64
No known key found for this signature in database
2 changed files with 3 additions and 4 deletions

View file

@ -3,13 +3,13 @@
import { Icon } from "@budibase/bbui"
import GridPopover from "../overlays/GridPopover.svelte"
const { visibleColumns, scroll, width, subscribe, ui, keyboardBlocked } =
const { scrollableColumns, scroll, width, subscribe, ui, keyboardBlocked } =
getContext("grid")
let anchor
let isOpen = false
$: columnsWidth = $visibleColumns.reduce(
$: columnsWidth = $scrollableColumns.reduce(
(total, col) => (total += col.width),
0
)
@ -43,7 +43,7 @@
{#if isOpen}
<GridPopover
{anchor}
align={$visibleColumns.length ? "right" : "left"}
align={$scrollableColumns.length ? "right" : "left"}
on:close={close}
maxHeight={null}
resizable

View file

@ -21,7 +21,6 @@
$: visible = $isReordering && left >= $bodyLeft
const getLeft = (targetColumn, insertAfter, scrollLeft) => {
console.log(targetColumn)
if (!targetColumn) {
return 0
}