From 7a08e2b50696dd1063fa9ad323c8fca5c2fc5886 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 7 Sep 2023 01:49:06 -0400 Subject: hide schema chrome when chromeHidden is set. ignore showTitle in schemaView --- src/client/views/StyleProvider.tsx | 1 + .../collectionSchema/CollectionSchemaView.tsx | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index cdf104a18..069bfd049 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -143,6 +143,7 @@ export function DefaultStyleProvider(doc: Opt, props: Opt (this._tableContentRef = ref)} /> -
- (value ? this.addRow(Docs.Create.TextDocument(value, { title: value, _layout_autoHeight: true })) : false), 'add text doc')} - placeholder={"Type text to create note or ':' to create specific type"} - contents={'+ New Node'} - menuCallback={this.menuCallback} - height={CollectionSchemaView._newNodeInputHeight} - /> -
+ {!this.layoutDoc.chromeHidden ? null : ( +
+ (value ? this.addRow(Docs.Create.TextDocument(value, { title: value, _layout_autoHeight: true })) : false), 'add text doc')} + placeholder={"Type text to create note or ':' to create specific type"} + contents={'+ New Node'} + menuCallback={this.menuCallback} + height={CollectionSchemaView._newNodeInputHeight} + /> +
+ )} {this.previewWidth > 0 &&
} {this.previewWidth > 0 && ( -- cgit v1.2.3-70-g09d2