From 480683c11a52bdefdac95807951a5b209128e14d Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 20 Oct 2024 21:47:45 +0300 Subject: [PATCH 1/2] added sticky headers --- src/styles/table.pcss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/styles/table.pcss b/src/styles/table.pcss index dbd52ba..35fc0e2 100644 --- a/src/styles/table.pcss +++ b/src/styles/table.pcss @@ -70,6 +70,10 @@ & .tc-row:first-child { font-weight: 600; border-bottom: 2px solid var(--color-border); + position: sticky; + top: 0px; + z-index: 2; + background-color: #fff; & [contenteditable]:empty::before { content: attr(heading); From aa229cc523d280beaea9c1dc6e7498ba64314c16 Mon Sep 17 00:00:00 2001 From: Ivan Date: Wed, 23 Oct 2024 21:55:07 +0300 Subject: [PATCH 2/2] Update table.pcss --- src/styles/table.pcss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/table.pcss b/src/styles/table.pcss index 35fc0e2..fd0bfe2 100644 --- a/src/styles/table.pcss +++ b/src/styles/table.pcss @@ -73,7 +73,7 @@ position: sticky; top: 0px; z-index: 2; - background-color: #fff; + background-color: var(--color-background); & [contenteditable]:empty::before { content: attr(heading);