diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-04-30 22:03:30 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-04-30 22:03:30 -0400 |
commit | 97ed2e452597d5f1f2e8d0abfc06e94b4aa5d448 (patch) | |
tree | 4a70b691fed3fc06c24471649e85688d6d8a22ac /src | |
parent | e0375046dd873745f51263c215395843e7b6c2ce (diff) |
fixed template button
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/DocumentDecorations.scss | 3 | ||||
-rw-r--r-- | src/client/views/nodes/LinkBox.tsx | 23 |
2 files changed, 14 insertions, 12 deletions
diff --git a/src/client/views/DocumentDecorations.scss b/src/client/views/DocumentDecorations.scss index b00b48c9e..ecddb8b06 100644 --- a/src/client/views/DocumentDecorations.scss +++ b/src/client/views/DocumentDecorations.scss @@ -207,8 +207,6 @@ $linkGap : 3px; bottom: 0; left: 50px; pointer-events: auto; - background-color: $dark-color; - color: $light-color; text-transform: uppercase; letter-spacing: 2px; font-size: 75%; @@ -227,6 +225,7 @@ $linkGap : 3px; height: 20px; border-radius: 50%; opacity: 0.9; + font-size:14; background-color: $dark-color; color: $light-color; text-align: center; diff --git a/src/client/views/nodes/LinkBox.tsx b/src/client/views/nodes/LinkBox.tsx index 89c06e7b3..8f979fdd7 100644 --- a/src/client/views/nodes/LinkBox.tsx +++ b/src/client/views/nodes/LinkBox.tsx @@ -11,6 +11,7 @@ import { undoBatch } from "../../util/UndoManager"; import { CollectionDockingView } from "../collections/CollectionDockingView"; import './LinkBox.scss'; import React = require("react"); +import { runInAction } from 'mobx'; library.add(faEye); @@ -70,20 +71,22 @@ export class LinkBox extends React.Component<Props> { e.stopPropagation(); this.props.linkDoc.GetTAsync(KeyStore.LinkedFromDocs, Document, field => { if (field) { - field.GetTAsync<ListField<Document>>(KeyStore.LinkedToDocs, ListField, field => { - if (field) { - field.Data.splice(field.Data.indexOf(this.props.linkDoc)); - } - }); + field.GetTAsync<ListField<Document>>(KeyStore.LinkedToDocs, ListField, field => + runInAction(() => { + if (field) { + field.Data.splice(field.Data.indexOf(this.props.linkDoc)); + } + })); } }); this.props.linkDoc.GetTAsync(KeyStore.LinkedToDocs, Document, field => { if (field) { - field.GetTAsync<ListField<Document>>(KeyStore.LinkedFromDocs, ListField, field => { - if (field) { - field.Data.splice(field.Data.indexOf(this.props.linkDoc)); - } - }); + field.GetTAsync<ListField<Document>>(KeyStore.LinkedFromDocs, ListField, field => + runInAction(() => { + if (field) { + field.Data.splice(field.Data.indexOf(this.props.linkDoc)); + } + })); } }); } |