aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-05 15:38:03 -0500
committerbobzel <zzzman@gmail.com>2025-03-05 15:38:03 -0500
commit436b3def89ea955e2ff30fe8c2e9d15092e8c9a9 (patch)
tree29804bb08a5a5deaf9cfdee7a3f290ada85e2dc3 /src/client/views/PropertiesView.tsx
parentdb3bdb19ff7bc1c69c544797c05a6db3b72b1464 (diff)
fixed gridView to have margins. fixed gridView rowslider.
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index 8e043baee..11adf7435 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -152,9 +152,16 @@ export class PropertiesView extends ObservableReactComponent<PropertiesViewProps
return this.selectedDoc?.isGroup;
}
@computed get isStack() {
- return [CollectionViewType.Masonry, CollectionViewType.Multicolumn, CollectionViewType.Multirow, CollectionViewType.Stacking, CollectionViewType.NoteTaking, CollectionViewType.Card, CollectionViewType.Carousel].includes(
- this.selectedDoc?.type_collection as CollectionViewType
- );
+ return [
+ CollectionViewType.Masonry,
+ CollectionViewType.Multicolumn,
+ CollectionViewType.Multirow,
+ CollectionViewType.Stacking,
+ CollectionViewType.NoteTaking,
+ CollectionViewType.Card,
+ CollectionViewType.Carousel,
+ CollectionViewType.Grid,
+ ].includes(this.selectedDoc?.type_collection as CollectionViewType);
}
rtfWidth = () => (!this.selectedLayoutDoc ? 0 : Math.min(NumCast(this.selectedLayoutDoc?._width), this._props.width - 20));