diff options
| author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-07-02 10:40:17 -0500 |
|---|---|---|
| committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-07-02 10:40:17 -0500 |
| commit | 96001ff5b299326de8742a6540acd5017d0f751a (patch) | |
| tree | d9f3055c3e4198b1d95e3711160878aa0abb61d2 /src/client/views/collections | |
| parent | 8d1b7b3059e7fcaa3dbf25aa400ea993c3f29c83 (diff) | |
started link created popup, tried hihglighting source
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionLinearView.scss | 2 | ||||
| -rw-r--r-- | src/client/views/collections/CollectionLinearView.tsx | 17 |
2 files changed, 15 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionLinearView.scss b/src/client/views/collections/CollectionLinearView.scss index 647ce1b01..134d62d4f 100644 --- a/src/client/views/collections/CollectionLinearView.scss +++ b/src/client/views/collections/CollectionLinearView.scss @@ -10,6 +10,7 @@ height: 100%; >span { + margin-top: 8px; margin-left: 4px; //margin-bottom: 2px; @@ -18,7 +19,6 @@ display: inline-block; border-radius: 18px; margin-right: 6px; - padding: "4px"; cursor: pointer; } diff --git a/src/client/views/collections/CollectionLinearView.tsx b/src/client/views/collections/CollectionLinearView.tsx index df8e2c58e..a180991d0 100644 --- a/src/client/views/collections/CollectionLinearView.tsx +++ b/src/client/views/collections/CollectionLinearView.tsx @@ -79,7 +79,14 @@ export class CollectionLinearView extends CollectionSubView(LinearDocument) { @action exitLongLinks = () => { - DocumentLinksButton.StartLink = undefined + if (DocumentLinksButton.StartLink) { + if (DocumentLinksButton.StartLink.Document) { + action((e: React.PointerEvent<HTMLDivElement>) => { + Doc.UnBrushDoc(DocumentLinksButton.StartLink?.Document as Doc); + }); + } + } + DocumentLinksButton.StartLink = undefined; } render() { @@ -146,8 +153,12 @@ export class CollectionLinearView extends CollectionSubView(LinearDocument) { background: backgroundColor === color ? "black" : backgroundColor, }} onPointerDown={e => e.stopPropagation()} > - <span style={{ fontSize: "12.5px", display: "inline", whiteSpace: "nowrap" }}> - Creating Link From: {DocumentLinksButton.StartLink.title} </span> + <span style={{ + fontSize: "12.5px", display: "inline", whiteSpace: "nowrap", + paddingLeft: "8px", paddingRight: "8px", paddingTop: "4px", + paddingBottom: "10px" + }}> + Creating link from: {DocumentLinksButton.StartLink.title} </span> <FontAwesomeIcon icon="times-circle" size="lg" style={{ color: "red" }} onClick={this.exitLongLinks} /> |
