aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-07 11:06:31 -0500
committerbobzel <zzzman@gmail.com>2025-03-07 11:06:31 -0500
commitd5eb3271f705b62deb20d6044a9f9e1562ab9ae4 (patch)
treebb4dbb4474a01472cfb6f62d20e167507e3f786f
parent1a80d0b26541b9881120b17051378a9e16055b8b (diff)
changed masonryView so that if column count is set w/o a columnWidth, then it stays fixed
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 72e6bb8f2..6bbd43b1b 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -239,9 +239,9 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
);
// reset section headers when a new filter is inputted
this._disposers.width = reaction(
- () => [this._props.PanelWidth() - 2 * this.xMargin, NumCast(this.Document._layout_columnWidth, 250)],
+ () => [this._props.PanelWidth() - 2 * this.xMargin, NumCast(this.Document._layout_columnWidth)],
([pw, cw]) => {
- if (!this.isStackingView && Math.round(pw / cw)) {
+ if (cw && !this.isStackingView && Math.round(pw / cw)) {
this.layoutDoc._layout_columnCount = Math.round(pw / cw);
}
}