diff options
author | bobzel <zzzman@gmail.com> | 2024-10-17 17:19:25 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-10-17 17:19:25 -0400 |
commit | 8ac260db2fdffc37ff9b6e91971f287df6a70528 (patch) | |
tree | c4bad3d44cb4c374b84834a39f5fc664345784f7 /src/client/views/nodes/ComparisonBox.tsx | |
parent | 3067940f28563d1217056f6eb428d377365077a8 (diff) | |
parent | dd93f5175064850c6c0e47f025cd7bbba1f23106 (diff) |
Merge branch 'master' into alyssa-starter
Diffstat (limited to 'src/client/views/nodes/ComparisonBox.tsx')
-rw-r--r-- | src/client/views/nodes/ComparisonBox.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/nodes/ComparisonBox.tsx b/src/client/views/nodes/ComparisonBox.tsx index 3c126ea4a..f6c33d6ba 100644 --- a/src/client/views/nodes/ComparisonBox.tsx +++ b/src/client/views/nodes/ComparisonBox.tsx @@ -792,8 +792,9 @@ export class ComparisonBox extends ViewBoxAnnotatableComponent<FieldViewProps>() const renderMode = new Map<flashcardRevealOp, () => JSX.Element>([ [flashcardRevealOp.FLIP, this.renderAsFlip], [flashcardRevealOp.SLIDE, this.renderAsBeforeAfter]]); // prettier-ignore - if (this.isQuizMode) this.renderAsQuiz(this.frontText); - return ( + return this.isQuizMode ? ( + this.renderAsQuiz(this.frontText) + ) : ( <div className="comparisonBox" style={{ pointerEvents: this._props.isContentActive() && !this.Document[Animation] ? 'unset' : undefined }} onContextMenu={this.flashcardContextMenu}> {renderMode.get(this.revealOp)?.() ?? null} {this.loading ? ( |