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 {
16571657}
16581658
16591659.notion-list-item-title {
1660+ display : flex;
1661+ align-items : center;
16601662 white-space : nowrap;
16611663 overflow : hidden;
16621664 text-overflow : ellipsis;
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type * as types from 'notion-types'
22import type * as React from 'react'
33import { type PageBlock } from 'notion-types'
44
5+ import { PageIcon } from '../components/page-icon'
56import { useNotionContext } from '../context'
67import { type CollectionViewProps } from '../types'
78import { CollectionGroup } from './collection-group'
@@ -72,6 +73,11 @@ function List({
7273 key = { blockId }
7374 >
7475 < div className = 'notion-list-item-title' >
76+ < PageIcon
77+ block = { block }
78+ className = 'notion-page-title-icon'
79+ hideDefaultIcon
80+ />
7581 < Property
7682 schema = { titleSchema }
7783 data = { titleData }
You can’t perform that action at this time.
0 commit comments