diff options
author | bobzel <zzzman@gmail.com> | 2021-03-05 15:50:03 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-05 15:50:03 -0500 |
commit | 364b946e286533c2b30b80157cde8eebb2473c87 (patch) | |
tree | a0764ac9dd5713d4ecd95ff9f2119194dc2c2d1f | |
parent | cf2b070379ff8c83ceafb8eb441f5db2a6466b89 (diff) |
from last
-rw-r--r-- | src/client/views/nodes/LinkDocPreview.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/LinkDocPreview.tsx b/src/client/views/nodes/LinkDocPreview.tsx index a3c149ffc..3fe164f8a 100644 --- a/src/client/views/nodes/LinkDocPreview.tsx +++ b/src/client/views/nodes/LinkDocPreview.tsx @@ -191,7 +191,7 @@ export class LinkDocPreview extends React.Component<LinkDocPreviewProps> { render() { const borders = 16; // 8px border on each side return <div className="linkDocPreview" onPointerDown={this.followLink} - style={{ left: this.props.location[0], top: this.props.location[1], width: this.width() + borders, height: this.height() + borders }}> + style={{ left: this.props.location[0], top: this.props.location[1], width: this.width() + borders, height: this.height() + borders + (this.props.showHeader ? 37 : 0) }}> {this.docPreview} </div>; } |