diff options
| author | Aubrey Li <Aubrey-Li> | 2022-04-05 16:17:51 -0400 |
|---|---|---|
| committer | Aubrey Li <Aubrey-Li> | 2022-04-05 16:17:51 -0400 |
| commit | 4cb2fc6f0a173939b5ee51ff2d6548058799facd (patch) | |
| tree | 2f6aa087c2b2eaf51a03fc30548371afbabc2855 /src/client/views/collections/TreeView.tsx | |
| parent | 9a35bde069a28f53b4ecf668a066d7c94e63cce2 (diff) | |
| parent | 8f6a065c192c091393e654bdac682c285a63ad8f (diff) | |
merge master
Diffstat (limited to 'src/client/views/collections/TreeView.tsx')
| -rw-r--r-- | src/client/views/collections/TreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx index eedb353e3..ff5c4bab1 100644 --- a/src/client/views/collections/TreeView.tsx +++ b/src/client/views/collections/TreeView.tsx @@ -669,7 +669,7 @@ export class TreeView extends React.Component<TreeViewProps> { ContentScaling={returnOne} />; - const buttons = this.props.styleProvider?.(this.doc, this.props.treeView.props, StyleProp.Decorations + (Doc.IsSystem(this.props.containerCollection) ? ":afterHeader" : "")); + const buttons = this.props.styleProvider?.(this.doc, { ...this.props.treeView.props, ContainingCollectionDoc: this.props.parentTreeView?.doc }, StyleProp.Decorations + (Doc.IsSystem(this.props.containerCollection) ? ":afterHeader" : "")); return <> <div className={`docContainer${Doc.IsSystem(this.props.document) || this.props.document.isFolder ? "-system" : ""}`} ref={this._tref} title="click to edit title. Double Click or Drag to Open" style={{ |
