From 0b9e28a92487dc3a69519877d92235fca02b1b8c Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 28 Feb 2022 11:50:37 -0500 Subject: fixed double-clicking to open web page to keep showing thumbnail until web page is ready. --- src/client/views/nodes/DocumentView.tsx | 11 ++++++----- src/client/views/nodes/WebBox.tsx | 8 +++++--- 2 files changed, 11 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 6468913fb..67486dcf4 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -205,6 +205,7 @@ export class DocumentViewInternal extends DocComponent); } @computed get ContentScale() { return this.props.ContentScaling?.() || 1; } + @computed get thumb() { return ImageCast(this.layoutDoc["thumb-frozen"], ImageCast(this.layoutDoc.thumb))?.url.href.replace(".png", "_m.png"); } @computed get hidden() { return this.props.styleProvider?.(this.layoutDoc, this.props, StyleProp.Hidden); } @computed get opacity() { return this.props.styleProvider?.(this.layoutDoc, this.props, StyleProp.Opacity); } @computed get boxShadow() { return this.props.styleProvider?.(this.layoutDoc, this.props, StyleProp.BoxShadow); } @@ -840,7 +841,6 @@ export class DocumentViewInternal extends DocComponent + {!this.thumb ? (null) : + ; return (
+ style={{ pointerEvents: this.pointerEvents(), display: !this.props.isSelected() && !this.isAnyChildContentActive() && LightboxView.LightboxDoc !== this.rootDoc && this.webThumb ? "none" : undefined }} >