diff options
| author | bobzel <zzzman@gmail.com> | 2021-08-23 15:39:19 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-08-23 15:39:19 -0400 |
| commit | e81bb4e087d7bdb9521bfed1c84ba4d4dac8aa75 (patch) | |
| tree | df565c39df4a890e64d3711654aab0d94176e8f5 /src | |
| parent | 61420d03c48d67913cd85571088dd31ac88fbb5a (diff) | |
set max size for blue link button when zooming in.
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index d158746d6..678be0500 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -809,7 +809,9 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps layoutKey={this.finalLayoutKey} /> {this.layoutDoc.hideAllLinks ? (null) : this.allLinkEndpoints} {this.hideLinkButton ? (null) : - <DocumentLinksButton View={this.props.DocumentView()} Offset={[this.topMost ? 0 : -15, undefined, undefined, this.topMost ? 10 : -20]} />} + <div style={{ transformOrigin: "top left", transform: `scale(${Math.min(1, this.props.ScreenToLocalTransform().Scale)})` }}> + <DocumentLinksButton View={this.props.DocumentView()} Offset={[this.topMost ? 0 : -15, undefined, undefined, this.topMost ? 10 : -20]} /> + </div>} {audioView} </div>; |
