From 530b598e4e994bb566bcd289e95d05ddd1ecf86c Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 9 Oct 2024 15:49:02 -0400 Subject: hide flashcard menu when animating docs in card view and elsewhere --- src/client/views/nodes/ComparisonBox.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx index 9b75feba8..b86d61fdd 100644 --- a/src/client/views/nodes/ComparisonBox.tsx +++ b/src/client/views/nodes/ComparisonBox.tsx @@ -19,6 +19,7 @@ import { CollectionViewType, DocumentType } from '../../documents/DocumentTypes' import { Docs } from '../../documents/Documents'; import { DragManager } from '../../util/DragManager'; import { dropActionType } from '../../util/DropActionTypes'; +import { SnappingManager } from '../../util/SnappingManager'; import { undoable } from '../../util/UndoManager'; import { ContextMenu } from '../ContextMenu'; import { ViewBoxAnnotatableComponent } from '../DocComponent'; @@ -102,7 +103,7 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent() @computed get uiBtnScaling() { return Math.max(this.maxWidgetSize / this._sideBtnWidth, 1) * Math.min(1, this.viewScaling)* (this._props.NativeDimScaling?.() ?? 1); } // prettier-ignore @computed get flashcardMenu() { - return ( + return SnappingManager.HideDecorations ? null : (
{this.overlayAlternateIcon} {!this._props.isContentActive() ? null : ( -- cgit v1.2.3-70-g09d2