aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-12 03:28:07 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-06-12 03:28:07 -0400
commit707a1a4cba9f0af9ee07b487eddf0f4ca85c8a78 (patch)
tree96fc90a99c3f6af6199add401b6b0d74d7729b15 /src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
parent571220cb349644efc149b8e13d000a37366db664 (diff)
col menu icon now shows only on hover
Diffstat (limited to 'src/client/views/collections/collectionSchema/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 25a1b4819..affa70a62 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -209,7 +209,7 @@ export class CollectionSchemaView extends CollectionSubView() {
this._docs = this._docs.filter(d => d !== doc)
}
- rowIndex = (doc: Doc) => this.draggedSpliceDocs.docs.indexOf(doc);
+ rowIndex = (doc: Doc) => this.docsWithDrag.docs.indexOf(doc);
@action
onKeyDown = (e: KeyboardEvent) => {
@@ -581,7 +581,7 @@ export class CollectionSchemaView extends CollectionSubView() {
const draggedDocs = de.complete.docDragData?.draggedDocuments;
if (draggedDocs && super.onInternalDrop(e, de) && !this.sortField) {
- const docs = this.draggedSpliceDocs.docs.slice();
+ const docs = this.docsWithDrag.docs.slice();
this._docs = docs;
this.clearSelection();
draggedDocs.forEach(doc => {
@@ -1031,7 +1031,7 @@ export class CollectionSchemaView extends CollectionSubView() {
return docs;
}
- @computed get draggedSpliceDocs() {
+ @computed get docsWithDrag() {
const draggedDocs = this.isContentActive() ? DragManager.docsBeingDragged : [];
let docs = [...this.docs];
docs = docs.filter(d => !draggedDocs.includes(d));
@@ -1058,7 +1058,7 @@ export class CollectionSchemaView extends CollectionSubView() {
screenToLocal = () => this.ScreenToLocalBoxXf().translate(-this.tableWidth, 0);
previewWidthFunc = () => this.previewWidth;
onPassiveWheel = (e: WheelEvent) => e.stopPropagation();
- displayedDocsFunc = () => this.draggedSpliceDocs.docs;
+ displayedDocsFunc = () => this.docsWithDrag.docs;
_oldWheel: any;
render() {
return (