From 138d99aa7768db18fde1af2cd82bb2ed29925b8a Mon Sep 17 00:00:00 2001 From: Peter White Date: Wed, 25 Mar 2026 08:09:27 +0100 Subject: [PATCH] Restore header rounding for non-overflowing tables --- .../src/components/DocumentView/Table/StickyViewGrid.tsx | 5 +++-- packages/gitbook/src/components/DocumentView/Table/Table.tsx | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/gitbook/src/components/DocumentView/Table/StickyViewGrid.tsx b/packages/gitbook/src/components/DocumentView/Table/StickyViewGrid.tsx index a015aa430..5e86ed44e 100644 --- a/packages/gitbook/src/components/DocumentView/Table/StickyViewGrid.tsx +++ b/packages/gitbook/src/components/DocumentView/Table/StickyViewGrid.tsx @@ -93,7 +93,7 @@ export function StickyViewGrid({ className, header, children }: StickyViewGridPr
@@ -123,6 +123,7 @@ export function StickyViewGrid({ className, header, children }: StickyViewGridPr className={tcls( styles.tableScrollArea, 'w-full min-w-0 overflow-x-auto overflow-y-hidden border-tint-subtle', + 'group-data-[scrollable=true]/table:mx-px', 'group-data-[scrollable=true]/table:border-0', 'group-data-[scrollable=true]/table:rounded-none' )} diff --git a/packages/gitbook/src/components/DocumentView/Table/Table.tsx b/packages/gitbook/src/components/DocumentView/Table/Table.tsx index 81ed678e3..166cb8bde 100644 --- a/packages/gitbook/src/components/DocumentView/Table/Table.tsx +++ b/packages/gitbook/src/components/DocumentView/Table/Table.tsx @@ -56,8 +56,9 @@ export function Table(props: BlockProps) {