diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-07-16 18:29:54 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-07-16 18:29:54 -0400 |
| commit | e332d276dd7bb0f3b6bb80ede2538b2de4cef3d5 (patch) | |
| tree | 7ecf87678f69a6dd9cf34304597694e6d20d3489 /src/client/views/collections/CollectionDockingView.tsx | |
| parent | f3df3e94b4fbe899a25f1c7a8f423102d11c5fb8 (diff) | |
fixed mini map backgrounds
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 3c07ed0e3..bedfa7806 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -665,7 +665,6 @@ interface DockedFrameProps { documentId: FieldId; glContainer: any; libraryPath: (FieldId[]); - backgroundColor?: (doc: Doc) => string | undefined; //collectionDockingView: CollectionDockingView } @observer @@ -839,7 +838,10 @@ export class DockedFrameRenderer extends React.Component<DockedFrameProps> { }), emptyFunction, emptyFunction); } renderMiniMap() { - return <div className="miniMap" style={{ width: this.returnMiniSize(), height: this.returnMiniSize() }}> + return <div className="miniMap" style={{ + width: this.returnMiniSize(), height: this.returnMiniSize(), background: StrCast(this._document!._backgroundColor, + StrCast(this._document!.backgroundColor, CollectionDockingView.Instance.props.backgroundColor?.(this._document!))), + }}> <CollectionFreeFormView Document={this._document!} LibraryPath={emptyPath} |
