From 919483d4222de685c1062a1e715f57c09442b676 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 5 Feb 2021 13:57:34 -0500 Subject: from last --- src/client/views/DocumentDecorations.tsx | 15 ++++++++++----- src/client/views/collections/CollectionMenu.tsx | 2 +- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 0dfa0f8b2..77b43db9b 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -175,7 +175,10 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b } else if (e.altKey) { // open same document in new tab CollectionDockingView.ToggleSplit(Cast(selectedDocs[0].props.Document._fullScreenView, Doc, null) || selectedDocs[0].props.Document, "right"); } else { - runInAction(() => LightboxView.LightboxDoc = selectedDocs[0].props.Document); + runInAction(() => { + LightboxView.LightboxDoc = selectedDocs[0].props.Document; + LightboxView.LightboxFuture = selectedDocs.slice(1).map(view => view.props.Document); + }); } } } @@ -572,10 +575,12 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b ); - const openIcon = !canOpen ? (null) : Open in Tab (ctrl: as alias, shift: in new collection)} placement="top">
{ e.preventDefault(); e.stopPropagation(); }} onPointerDown={this.onMaximizeDown}> - {SelectionManager.Views().length === 1 ? : "..."} -
-
; + const openIcon = !canOpen ? (null) : + Open in Tab (ctrl: as alias, shift: in new collection)} placement="top"> +
{ e.preventDefault(); e.stopPropagation(); }} onPointerDown={this.onMaximizeDown}> + +
+
; const titleArea = this._edtingTitle ? -- cgit v1.2.3-70-g09d2