diff options
author | mehekj <mehek.jethani@gmail.com> | 2023-03-23 15:15:03 -0400 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2023-03-23 15:15:03 -0400 |
commit | 016e51965ae2d0a83ca2d4e17000d57a40aac264 (patch) | |
tree | fad64c9239ca6019dff13ec575b799bba94ae422 | |
parent | 3fed87fe05a70a5ef63ed7989c7a28faee68bf4b (diff) |
fixed link lines
-rw-r--r-- | src/client/views/collections/collectionSchema/CollectionSchemaView.tsx | 9 | ||||
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index 48db1467c..b97a2393d 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -901,14 +901,6 @@ export class CollectionSchemaView extends CollectionSubView() { }}> <FontAwesomeIcon icon="plus" /> </div> - {/* <IconButton - icon={<FontAwesomeIcon icon="plus" />} - onPointerDown={e => { - console.log('clicked'); - this._columnMenuIndex && this._columnMenuIndex === -1 ? this.closeColumnMenu() : this.openColumnMenu(-1, true); - e.stopPropagation(); - }} - /> */} </div> {this.columnKeys.map((key, index) => { return ( @@ -960,6 +952,7 @@ export class CollectionSchemaView extends CollectionSubView() { hideDecorations={true} hideTitle={true} hideDocumentButtonBar={true} + hideLinkAnchors={true} fitWidth={returnTrue} onClick={() => this.rowOnClickScript} scriptContext={this} diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index c4c14c0ab..fcfcaaeda 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -203,6 +203,7 @@ export interface DocumentViewProps extends DocumentViewSharedProps { hideDocumentButtonBar?: boolean; hideOpenButton?: boolean; hideDeleteButton?: boolean; + hideLinkAnchors?: boolean; treeViewDoc?: Doc; isDocumentActive?: () => boolean | undefined; // whether a document should handle pointer events isContentActive: () => boolean | undefined; // whether document contents should handle pointer events @@ -1228,6 +1229,7 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps @computed get allLinkEndpoints() { // the small blue dots that mark the endpoints of links TraceMobx(); + if (this.props.hideLinkAnchors) return null; if (this.layoutDoc.unrendered || this.props.LayoutTemplateString?.includes(LinkAnchorBox.name)) return null; if (this.rootDoc.type === DocumentType.PRES || this.rootDoc.type === DocumentType.LINK || this.props.dontRegisterView) return null; const filtered = DocUtils.FilterDocs(this.directLinks, this.props.docFilters?.() ?? [], []).filter(d => d.linkDisplay); |