From 5eca36aa3e775646d96671b922bf7205074ab135 Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 10 Oct 2023 14:52:54 -0400 Subject: made tablebox row height a css variable. fixed panmode so that left drag selects w/ marquee and two finger vertical pan isn't clamped. --- .../collections/collectionFreeForm/CollectionFreeFormView.tsx | 2 +- src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 9 ++++----- src/client/views/global/globalCssVariables.scss | 3 +++ src/client/views/global/globalCssVariables.scss.d.ts | 1 + src/client/views/nodes/DataVizBox/components/Chart.scss | 3 ++- src/client/views/nodes/DataVizBox/components/TableBox.tsx | 3 ++- 6 files changed, 13 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 676e96714..3a8e8f2ef 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1082,7 +1082,7 @@ export class CollectionFreeFormView extends CollectionSubView Transform; @@ -223,7 +222,7 @@ export class MarqueeView extends React.Component height directly, but you can set the height of all of it's s. So this is the height of a tableBox row. + height: $DATA_VIZ_TABLE_ROW_HEIGHT !important; // bcz: hack. you can't set a height directly, but you can set the height of all of it's s. So this is the height of a tableBox row. padding: 0 !important; vertical-align: middle !important; } diff --git a/src/client/views/nodes/DataVizBox/components/TableBox.tsx b/src/client/views/nodes/DataVizBox/components/TableBox.tsx index b8f65cb7d..8f16df1dc 100644 --- a/src/client/views/nodes/DataVizBox/components/TableBox.tsx +++ b/src/client/views/nodes/DataVizBox/components/TableBox.tsx @@ -10,6 +10,7 @@ import { emptyFunction, setupMoveUpEvents, Utils } from '../../../../../Utils'; import { DragManager } from '../../../../util/DragManager'; import { DocumentView } from '../../DocumentView'; import { DataVizView } from '../DataVizBox'; +import { DATA_VIZ_TABLE_ROW_HEIGHT } from '../../../global/globalCssVariables.scss'; import './Chart.scss'; interface TableBoxProps { @@ -198,7 +199,7 @@ export class TableBox extends React.Component { this._tableHeight = r?.getBoundingClientRect().height ?? 0; } })}> -
+
{this.columns.map(col => ( -- cgit v1.2.3-70-g09d2