diff options
| author | bobzel <zzzman@gmail.com> | 2021-10-26 12:06:36 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-10-26 12:06:36 -0400 |
| commit | 3e0a9ff2c708891a15a681e5af549caf0b18ff60 (patch) | |
| tree | b5caec837d3d1ca9facf273974d6934629473c31 /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | bdf0befa2b5eff79c2729254c2d053afe18b1646 (diff) | |
when document is in lightbox view and a link is followed to its sidebar, we no longer reopen the document in its context. fixed selecting annotations on web/pdf. don't change document height when shown in a linkPreview. webBox fixes for pages with scripts. fixed range bounds when clicking on web text
several fixes to web pages on server and client.
client webbox allows clicks on divs with onclick instead of doing selection
also hacky fix so that google search url doesn't keep expanding by removing 'q=' regions
also added prevent/allow script menu item
server grabs all html and hides id="google.." which are ads.
also rewrites hrefs starting with http to route through corsProxy
also removes target=_blank tags to prevent pages from opening outside of dash.
also cleaned up routes and comments
also when not logged in, references to anything in dash domain route to /home
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 7dcd63b80..febccbfcc 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -75,7 +75,7 @@ export type collectionFreeformViewProps = { scaleField?: string; noOverlay?: boolean; // used to suppress docs in the overlay (z) layer (ie, for minimap since overlay doesn't scale) engineProps?: any; - dontRenderDocuments?: boolean; // used for annotation overlays which need to distribute documents into different freeformviews with different mixBlendModes depending on whether they are trnasparent or not. + dontRenderDocuments?: boolean; // used for annotation overlays which need to distribute documents into different freeformviews with different mixBlendModes depending on whether they are transparent or not. // However, this screws up interactions since only the top layer gets events. so we render the freeformview a 3rd time with all documents in order to get interaction events (eg., marquee) but we don't actually want to display the documents. }; @@ -1472,7 +1472,7 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P getContainerTransform={this.getContainerTransform} getTransform={this.getTransform} isAnnotationOverlay={this.isAnnotationOverlay}> - <div ref={this._marqueeRef} style={{ display: this.props.dontRenderDocuments ? "none" : undefined }}> + <div className="marqueeView-div" ref={this._marqueeRef} style={{ opacity: this.props.dontRenderDocuments ? 0 : undefined }}> {this.layoutDoc._backgroundGridShow ? this.backgroundGrid : (null)} <CollectionFreeFormViewPannableContents isAnnotationOverlay={this.isAnnotationOverlay} |
