aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionNoteTakingViewFieldColumn.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/collections/CollectionNoteTakingViewFieldColumn.tsx')
-rw-r--r--src/client/views/collections/CollectionNoteTakingViewFieldColumn.tsx30
1 files changed, 3 insertions, 27 deletions
diff --git a/src/client/views/collections/CollectionNoteTakingViewFieldColumn.tsx b/src/client/views/collections/CollectionNoteTakingViewFieldColumn.tsx
index adfeab3b0..605ee4b41 100644
--- a/src/client/views/collections/CollectionNoteTakingViewFieldColumn.tsx
+++ b/src/client/views/collections/CollectionNoteTakingViewFieldColumn.tsx
@@ -19,8 +19,7 @@ import { undoBatch } from "../../util/UndoManager";
import { ContextMenu } from "../ContextMenu";
import { ContextMenuProps } from "../ContextMenuItem";
import { EditableView } from "../EditableView";
-import "./CollectionStackingView.scss";
-import "./CollectionNoteTakingFieldViewColumn.scss";
+import "./CollectionNoteTakingView.scss";
import { FormattedTextBox } from "../nodes/formattedText/FormattedTextBox";
import { Id } from "../../../fields/FieldSymbols";
const higflyout = require("@hig/flyout");
@@ -51,7 +50,7 @@ interface CSVFieldColumnProps {
observeHeight: (myref: any) => void;
unobserveHeight: (myref: any) => void;
editableViewProps: any;
- // resizeColumns: (n: number) => void
+ resizeColumns: (n: number) => void
}
@observer
@@ -151,7 +150,7 @@ export class CollectionNoteTakingViewFieldColumn extends React.Component<CSVFiel
const newHeader = this.props.columnHeaders[newIndex];
this.props.docList.forEach(d => d[this.props.pivotField] = newHeader.heading.toString())
this.props.columnHeaders.splice(index, 1);
- // this.props.resizeColumns(this.props.columnHeaders.length)
+ this.props.resizeColumns(this.props.columnHeaders.length)
}
}
@@ -182,29 +181,6 @@ export class CollectionNoteTakingViewFieldColumn extends React.Component<CSVFiel
return false;
}
- // renderColorPicker = () => {
- // const gray = "#f1efeb";
- // const selected = this.props.headingObject ? this.props.headingObject.color : gray;
- // const colors = ["pink2", "purple4", "bluegreen1", "yellow4", "gray", "red2", "bluegreen7", "bluegreen5", "orange1"];
- // return <div className="collectionStackingView-colorPicker">
- // <div className="colorOptions">
- // {colors.map(col => {
- // const palette = PastelSchemaPalette.get(col);
- // return <div className={"colorPicker" + (selected === palette ? " active" : "")}
- // style={{ backgroundColor: palette }} onClick={() => this.changeColumnColor(palette!)} />;
- // })}
- // </div>
- // </div>;
- // }
-
- // renderMenu = () => {
- // return <div className="collectionStackingView-optionPicker">
- // <div className="optionOptions">
- // <div className={"optionPicker" + (true ? " active" : "")} onClick={action(() => { })}>Add options here</div>
- // </div>
- // </div >;
- // }
-
@observable private collapsed: boolean = false;
private toggleVisibility = action(() => this.collapsed = !this.collapsed);