diff options
| author | geireann <geireann.lindfield@gmail.com> | 2021-08-25 05:20:50 -0400 |
|---|---|---|
| committer | geireann <geireann.lindfield@gmail.com> | 2021-08-25 05:20:50 -0400 |
| commit | 6376a4b6d6a730c6c170fa25dd5f19dea6b8f82a (patch) | |
| tree | 7af614d9b33a68343939614991d8de40a1584ce0 /src/client/views/collections/collectionLinearView | |
| parent | 685f31eee39ba076c659fb90c5cb9e29d2d0e4dc (diff) | |
many updates
Diffstat (limited to 'src/client/views/collections/collectionLinearView')
| -rw-r--r-- | src/client/views/collections/collectionLinearView/CollectionLinearView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionLinearView/CollectionLinearView.tsx b/src/client/views/collections/collectionLinearView/CollectionLinearView.tsx index 990c2e4b2..5c16f8929 100644 --- a/src/client/views/collections/collectionLinearView/CollectionLinearView.tsx +++ b/src/client/views/collections/collectionLinearView/CollectionLinearView.tsx @@ -147,8 +147,9 @@ export class CollectionLinearView extends CollectionSubView(LinearDocument) { {this.childLayoutPairs.map((pair, ind) => { const nested = pair.layout._viewType === CollectionViewType.Linear; const dref = React.createRef<HTMLDivElement>(); + const hidden = pair.layout.hidden === true; // const scalable = pair.layout.onClick || pair.layout.onDragStart; - return <div className={`collectionLinearView-docBtn`} key={pair.layout[Id]} ref={dref} + return hidden ? (null) : <div className={`collectionLinearView-docBtn`} key={pair.layout[Id]} ref={dref} style={{ pointerEvents: "all", width: nested ? undefined : NumCast(pair.layout._width), |
