diff options
author | bobzel <zzzman@gmail.com> | 2022-03-10 13:58:38 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-03-10 13:58:38 -0500 |
commit | 84cf9d6536b0e7eb75cec22bc69a11937b7c47b1 (patch) | |
tree | 4f5e93f178a4b11c5a9b17c20944034f4c423836 /src/client/views/nodes/WebBox.tsx | |
parent | 5939e5b1df11a21c1fed2aa84ba9726affa7e28a (diff) |
added prop when thumbnail is shown for a document so componentView can choose not to render. fixed pdf views to not generate gray box when first transitioning from thumb to live view.
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index 563cc462a..91f7d97d7 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -705,7 +705,7 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps pointerEvents={this._isAnnotating || SnappingManager.GetIsDragging() ? "all" : "none"} />; return ( <div className="webBox" ref={this._mainCont} - style={{ pointerEvents: this.pointerEvents(), display: !this.props.isSelected() && !this.isAnyChildContentActive() && LightboxView.LightboxDoc !== this.rootDoc && this.webThumb ? "none" : undefined }} > + style={{ pointerEvents: this.pointerEvents(), display: this.props.thumbShown?.() ? "none" : undefined }} > <div className="webBox-container" style={{ pointerEvents }} onContextMenu={this.specificContextMenu}> <div className={"webBox-outerContent"} ref={this._outerRef} style={{ |