aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-08-29 13:31:22 -0400
committerbobzel <zzzman@gmail.com>2022-08-29 13:31:22 -0400
commitfb873aed085f8e11231a231aac94d6fb3bd27683 (patch)
tree6448b02973676b95f99eba5d6f1a8608293670f8 /src/client/views/collections/CollectionStackingView.tsx
parent5c25ba79fb24309cb9861d440778cbb902acd123 (diff)
fixed being able to draw on web/pdfs. adjusted default margins of stacking views.
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 7f142727c..cc006c734 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -80,13 +80,14 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
return this.props.styleProvider?.(this.layoutDoc, this.props, StyleProp.HeaderMargin);
}
@computed get xMargin() {
- return NumCast(this.layoutDoc._xMargin, 2 * Math.min(this.gridGap, 0.05 * this.props.PanelWidth()));
+ return NumCast(this.layoutDoc._xMargin, Math.min(3, 0.05 * this.props.PanelWidth()));
}
@computed get yMargin() {
- return this.props.yPadding || NumCast(this.layoutDoc._yMargin, 5);
- } // 2 * this.gridGap)); }
+ return this.props.yPadding || NumCast(this.layoutDoc._yMargin, Math.min(5, 0.05 * this.props.PanelWidth()));
+ }
+
@computed get gridGap() {
- return NumCast(this.layoutDoc._gridGap, 10);
+ return NumCast(this.layoutDoc._gridGap, 5);
}
// are we stacking or masonry?
@computed get isStackingView() {