diff options
| author | bobzel <zzzman@gmail.com> | 2024-03-04 16:07:52 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-03-04 16:07:52 -0500 |
| commit | 2e99ef0512b8f1b5c089637643ff6addf5afd943 (patch) | |
| tree | b8cff42df265b24b47bc0e90d827b07110308e2f /src/client/views/PropertiesButtons.tsx | |
| parent | 49cfa95fdb3653a1224d4e5e3380e111c8e2014f (diff) | |
cleaned up a number of things related to autoHeight and stacking/masonry/notetaking views
Diffstat (limited to 'src/client/views/PropertiesButtons.tsx')
| -rw-r--r-- | src/client/views/PropertiesButtons.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/PropertiesButtons.tsx b/src/client/views/PropertiesButtons.tsx index cb38ab602..3cb835e39 100644 --- a/src/client/views/PropertiesButtons.tsx +++ b/src/client/views/PropertiesButtons.tsx @@ -486,8 +486,7 @@ export class PropertiesButtons extends React.Component<{}, {}> { const isImage = layoutField instanceof ImageField; const isMap = this.selectedDoc?.type === DocumentType.MAP; const isCollection = this.selectedDoc?.type === DocumentType.COL; - //TODO: will likely need to create separate note-taking view type here - const isStacking = this.selectedDoc?._type_collection === CollectionViewType.Stacking || this.selectedDoc?._type_collection === CollectionViewType.NoteTaking; + const isStacking = [CollectionViewType.Stacking, CollectionViewType.Masonry, CollectionViewType.NoteTaking].includes(this.selectedDoc?._type_collection as any); const isFreeForm = this.selectedDoc?._type_collection === CollectionViewType.Freeform; const isTree = this.selectedDoc?._type_collection === CollectionViewType.Tree; const isTabView = this.selectedTabView; |
