From 246d28faed53c1d860d1577627068505529699ee Mon Sep 17 00:00:00 2001 From: Matthias Huber Date: Fri, 29 Nov 2024 11:45:37 +0100 Subject: [PATCH] use proper fallback calculation value for pinned top and bottom rows #451 --- .../src/components/body/MRT_TableBody.module.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mantine-react-table/src/components/body/MRT_TableBody.module.css b/packages/mantine-react-table/src/components/body/MRT_TableBody.module.css index 4742fd356..fcd17b639 100644 --- a/packages/mantine-react-table/src/components/body/MRT_TableBody.module.css +++ b/packages/mantine-react-table/src/components/body/MRT_TableBody.module.css @@ -34,8 +34,8 @@ } .pinned { - bottom: calc(var(--mrt-table-footer-height, unset) * 1px - 1px); + bottom: calc(var(--mrt-table-footer-height, 0) * 1px - 1px); position: sticky; - top: calc(var(--mrt-table-head-height, unset) * 1px - 1px); + top: calc(var(--mrt-table-head-height, 0) * 1px - 1px); z-index: 1; }