diff options
author | bob <bcz@cs.brown.edu> | 2019-10-17 17:07:56 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-10-17 17:07:56 -0400 |
commit | 4808cb20b2c814e7b9cd92f88bba133994768e93 (patch) | |
tree | 46dd6f921da5e1c790a054136b7057702427def1 | |
parent | fca8d503610f799ca0e4afcec114075456d411e0 (diff) |
fixes for doculinkbox
-rw-r--r-- | src/client/views/Main.scss | 2 | ||||
-rw-r--r-- | src/client/views/nodes/DocuLinkBox.tsx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/Main.scss b/src/client/views/Main.scss index 0335e12a5..134a4ac85 100644 --- a/src/client/views/Main.scss +++ b/src/client/views/Main.scss @@ -26,6 +26,8 @@ div { height: 100%; pointer-events: none; border-radius: inherit; + position: inherit; + background: inherit; } p { diff --git a/src/client/views/nodes/DocuLinkBox.tsx b/src/client/views/nodes/DocuLinkBox.tsx index 2e968a9f6..b39eb3788 100644 --- a/src/client/views/nodes/DocuLinkBox.tsx +++ b/src/client/views/nodes/DocuLinkBox.tsx @@ -71,7 +71,6 @@ export class DocuLinkBox extends DocComponent<FieldViewProps, DocLinkSchema>(Doc return <div onPointerDown={this.onPointerDown} onClick={this.onClick} title={StrCast((this.props.Document[this.props.fieldKey === "anchor1" ? "anchor2" : "anchor1"]! as Doc).title)} ref={this._ref} style={{ cursor: "default", position: "absolute", background: c, width: "25px", height: "25px", borderRadius: "20px", textAlign: "center", left: `calc(${x}% - 12.5px)`, top: `calc(${y}% - 12.5px)`, pointerEvents: "all", - transform: `scale(${1 / this.props.ContentScaling()})`, }} /> } } |