From b77ea08d2095bae01b04ccfb421bfa57b465b154 Mon Sep 17 00:00:00 2001
From: geireann <geireann.lindfield@gmail.com>
Date: Tue, 1 Apr 2025 15:37:39 -0400
Subject: fixed stacking view with pivot's field column widths.

---
 src/client/views/collections/CollectionStackingViewFieldColumn.tsx | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'src/client/views/collections/CollectionStackingViewFieldColumn.tsx')

diff --git a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx
index e765b78b4..66839ba7f 100644
--- a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx
+++ b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx
@@ -305,10 +305,8 @@ export class CollectionStackingViewFieldColumn extends ObservableReactComponent<
     @computed get innards() {
         TraceMobx();
         const key = this._props.pivotField;
-        const headings = this._props.headings();
         const heading = this._heading;
         const columnYMargin = this._props.headingObject ? 0 : this._props.yMargin;
-        const uniqueHeadings = headings.map((i, idx) => headings.indexOf(i) === idx);
         const noValueHeader = `NO ${key.toUpperCase()} VALUE`;
         const evContents = heading || (this._props?.type === 'number' ? '0' : noValueHeader);
         const headingView = this._props.headingObject ? (
@@ -318,7 +316,7 @@ export class CollectionStackingViewFieldColumn extends ObservableReactComponent<
                 ref={this._headerRef}
                 style={{
                     marginTop: this._props.yMargin,
-                    width: this._props.columnWidth / (uniqueHeadings.length + (this._props.chromeHidden ? 0 : 1) || 1),
+                    width: this._props.columnWidth
                 }}>
                 {/* the default bucket (no key value) has a tooltip that describes what it is.
                     Further, it does not have a color and cannot be deleted. */}
@@ -361,7 +359,7 @@ export class CollectionStackingViewFieldColumn extends ObservableReactComponent<
                             margin: 'auto',
                             marginTop: this._props.dontCenter.includes('y') ? undefined : 'auto',
                             marginBottom: this._props.dontCenter.includes('y') ? undefined : 'auto',
-                            width: this._props.columnWidth / (uniqueHeadings.length + (this._props.chromeHidden ? 0 : 1) || 1),
+                            width: this._props.columnWidth,
                         }}>
                         <div
                             key={`${heading}-stack`}
@@ -369,7 +367,6 @@ export class CollectionStackingViewFieldColumn extends ObservableReactComponent<
                             style={{
                                 padding: `${columnYMargin}px ${0}px ${this._props.yMargin}px ${0}px`,
                                 margin: this._props.dontCenter.includes('x') ? undefined : 'auto',
-                                // width: 'max-content', // singleColumn ? undefined : `${cols * (style.columnWidth + style.gridGap) + 2 * style.xMargin - style.gridGap}px`,
                                 height: 'max-content',
                                 position: 'relative',
                                 gridGap: this._props.gridGap,
-- 
cgit v1.2.3-70-g09d2

