File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
react-notion-x/src/third-party Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 5
5
"repository" : " NotionX/react-notion-x" ,
6
6
"author" :
" Travis Fischer <[email protected] >" ,
7
7
"license" : " MIT" ,
8
+ "version" : " 6.15.8" ,
8
9
"engines" : {
9
10
"node" : " >=12"
10
11
},
Original file line number Diff line number Diff line change @@ -47,5 +47,6 @@ export interface Collection {
47
47
property : PropertyID
48
48
visibility : 'show' | 'hide'
49
49
} >
50
+ hide_linked_collection_name ?: boolean
50
51
}
51
52
}
Original file line number Diff line number Diff line change @@ -175,6 +175,8 @@ const CollectionViewBlock: React.FC<{
175
175
}
176
176
177
177
const title = getTextContent ( collection . name ) . trim ( )
178
+ const showTitle =
179
+ collectionView . format ?. hide_linked_collection_name !== true && title
178
180
if ( collection . icon ) {
179
181
block . format = {
180
182
...block . format ,
@@ -194,9 +196,8 @@ const CollectionViewBlock: React.FC<{
194
196
/>
195
197
) }
196
198
</ div >
197
- < div className = 'notion-collection-header' >
198
- { /*TODO: only show if no full DB*/ }
199
- { title && (
199
+ { showTitle && (
200
+ < div className = 'notion-collection-header' >
200
201
< div className = 'notion-collection-header-title' >
201
202
< PageIcon
202
203
block = { block }
@@ -205,8 +206,8 @@ const CollectionViewBlock: React.FC<{
205
206
/>
206
207
{ title }
207
208
</ div >
208
- ) }
209
- </ div >
209
+ </ div >
210
+ ) }
210
211
</ div >
211
212
< div className = { cs ( 'notion-collection' , className ) } >
212
213
< CollectionView
You can’t perform that action at this time.
0 commit comments