diff options
author | anika <anika.ahluwalia@gmail.com> | 2020-12-31 10:41:37 -0600 |
---|---|---|
committer | anika <anika.ahluwalia@gmail.com> | 2020-12-31 10:41:37 -0600 |
commit | d16a3e3ce298b542cbb2416319c462efaafa191f (patch) | |
tree | bb268a8f7a83ec809f089f1318a36239147dee76 /src/client/views/collections/CollectionTreeView.tsx | |
parent | 7174328702fe6b350780728db890141f50ceec5b (diff) | |
parent | 319e0a27805c504595f43591353c1ee009aa51d1 (diff) |
merge and fix
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
-rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index 344a6c103..d1e0a0f02 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -212,8 +212,8 @@ export class CollectionTreeView extends CollectionSubView<Document, Partial<coll render() { TraceMobx(); if (!(this.doc instanceof Doc)) return (null); - const background = this.props.styleProvider?.(this.doc, this.props, StyleProp.BackgroundColor); - const paddingX = `${NumCast(this.doc._xPadding, 10)}px`; + const background = this.props.treeViewHideTitle && this.props.treeViewHideHeaderFields ? "#D3D3D3" : this.props.styleProvider?.(this.doc, this.props, StyleProp.BackgroundColor); + const paddingX = `${NumCast(this.doc._xPadding, 15)}px`; const paddingTop = `${NumCast(this.doc._yPadding, 20)}px`; const pointerEvents = !this.props.active() && !SnappingManager.GetIsDragging() && !this._isChildActive ? "none" : undefined; |