File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/react-notion-x/src Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -789,6 +789,10 @@ export function Block(props: BlockProps) {
789
789
const formatMap = tableBlock . format ?. table_block_column_format
790
790
const backgroundColor = block . format ?. block_color
791
791
792
+ const hasRowHeader = tableBlock . format ?. table_block_column_header === true
793
+
794
+ const isHeaderRow = hasRowHeader && tableBlock . content ?. [ 0 ] === block . id
795
+
792
796
if ( ! tableBlock || ! order ) {
793
797
return null
794
798
}
@@ -798,6 +802,7 @@ export function Block(props: BlockProps) {
798
802
className = { cs (
799
803
'notion-simple-table-row' ,
800
804
backgroundColor && `notion-${ backgroundColor } ` ,
805
+ isHeaderRow && 'notion-simple-table-header-row' ,
801
806
blockId
802
807
) }
803
808
>
Original file line number Diff line number Diff line change @@ -2672,7 +2672,7 @@ svg.notion-page-icon {
2672
2672
font-size : 14px ;
2673
2673
}
2674
2674
2675
- .notion-simple-table tr : first-child td {
2675
+ .notion-simple-table-header-row td {
2676
2676
background : var (--bg-color-0 );
2677
2677
}
2678
2678
You can’t perform that action at this time.
0 commit comments