diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-30 12:16:24 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-30 12:16:24 -0400 |
| commit | 58f83cc1eef844420e5b418011231f995c9cf043 (patch) | |
| tree | e610c7b8ad166054ba5a3579371200565131c98b /src/client/views/collections/CollectionMenu.tsx | |
| parent | b1ddfbe0a393dce03a8e5da9d70e9a46dc3b9755 (diff) | |
fixed dragging aliases using alias button. made dragging title of doc decorations or alias button allow doc to be embedded
Diffstat (limited to 'src/client/views/collections/CollectionMenu.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionMenu.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionMenu.tsx b/src/client/views/collections/CollectionMenu.tsx index 7464f7cd3..51d1d5559 100644 --- a/src/client/views/collections/CollectionMenu.tsx +++ b/src/client/views/collections/CollectionMenu.tsx @@ -442,6 +442,7 @@ export class CollectionViewBaseChrome extends React.Component<CollectionMenuProp const dragData = new DragManager.DocumentDragData([this.selectedDocumentView!.props.Document]); const offset = [e.clientX - contentDiv.getBoundingClientRect().x, e.clientY - contentDiv.getBoundingClientRect().y]; dragData.defaultDropAction = "alias"; + dragData.canEmbed = true; DragManager.StartDocumentDrag([contentDiv], dragData, e.clientX, e.clientY, { offsetX: offset[0], offsetY: offset[1], @@ -456,7 +457,7 @@ export class CollectionViewBaseChrome extends React.Component<CollectionMenuProp get aliasButton() { const targetDoc = this.selectedDoc; return !targetDoc ? (null) : <Tooltip title={<div className="dash-tooltip">{"Tap or Drag to create an alias"}</div>} placement="top"> - <button className="antimodeMenu-button" onPointerDown={this.onAliasButtonDown} onClick={this.onAlias} style={{ cursor: "copy" }}> + <button className="antimodeMenu-button" onPointerDown={this.onAliasButtonDown} onClick={this.onAlias} style={{ cursor: "drag" }}> <FontAwesomeIcon className="documentdecorations-icon" icon="copy" size="lg" /> </button> </Tooltip>; |
