aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-07 13:47:06 -0500
committerbobzel <zzzman@gmail.com>2025-03-07 13:47:06 -0500
commit010d7e9bbea5616d058c88de284905eecc145834 (patch)
tree80cdd856a64193434622da97b25e91654236bf84 /src/client/views/collections/CollectionStackingView.tsx
parent9d4bfd04760753b6fdd7ed81372ab8d85b615bc3 (diff)
parent82ba2c85e22fb809f1a5fba827c73555db0e4cd9 (diff)
Merge branch 'master' into aarav_edit
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-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);
}
}