File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/react-notion-x/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1657,6 +1657,8 @@ svg.notion-page-icon {
1657
1657
}
1658
1658
1659
1659
.notion-list-item-title {
1660
+ display : flex;
1661
+ align-items : center;
1660
1662
white-space : nowrap;
1661
1663
overflow : hidden;
1662
1664
text-overflow : ellipsis;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type * as types from 'notion-types'
2
2
import type * as React from 'react'
3
3
import { type PageBlock } from 'notion-types'
4
4
5
+ import { PageIcon } from '../components/page-icon'
5
6
import { useNotionContext } from '../context'
6
7
import { type CollectionViewProps } from '../types'
7
8
import { CollectionGroup } from './collection-group'
@@ -72,6 +73,11 @@ function List({
72
73
key = { blockId }
73
74
>
74
75
< div className = 'notion-list-item-title' >
76
+ < PageIcon
77
+ block = { block }
78
+ className = 'notion-page-title-icon'
79
+ hideDefaultIcon
80
+ />
75
81
< Property
76
82
schema = { titleSchema }
77
83
data = { titleData }
You can’t perform that action at this time.
0 commit comments