From ea14af8a64eeba84b3a964b13f63a49bfd67906f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 28 May 2024 11:00:47 +0100 Subject: [PATCH 1/4] Offset button column to account for vertical scrollbar if required --- .../src/components/grid/layout/ButtonColumn.svelte | 7 ++++++- .../src/components/grid/layout/Grid.svelte | 3 ++- .../components/grid/overlays/ScrollOverlay.svelte | 12 ++++++------ 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte b/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte index 3448042894..2e9bcf43d5 100644 --- a/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte +++ b/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte @@ -3,6 +3,7 @@ import { Button } from "@budibase/bbui" import GridCell from "../cells/GridCell.svelte" import GridScrollWrapper from "./GridScrollWrapper.svelte" + import { ScrollBarSize } from "../lib/constants" const { renderedRows, @@ -16,6 +17,7 @@ scroll, isDragging, buttonColumnWidth, + showVScrollbar, } = getContext("grid") let measureContainer @@ -67,7 +69,7 @@ selected={rowSelected} highlighted={rowHovered || rowFocused} > -
+
{#each buttons as button}