From 31e04bbd49825bf56c30cb50397a15c5df53c7a8 Mon Sep 17 00:00:00 2001 From: alyssaf16 Date: Fri, 30 Aug 2024 22:34:32 -0400 Subject: clean up comparison box --- .../nodes/formattedText/FormattedTextBox.scss | 31 --------------- .../views/nodes/formattedText/FormattedTextBox.tsx | 45 ---------------------- 2 files changed, 76 deletions(-) (limited to 'src/client/views/nodes/formattedText') diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.scss b/src/client/views/nodes/formattedText/FormattedTextBox.scss index 71706084f..d6f13d9ee 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.scss +++ b/src/client/views/nodes/formattedText/FormattedTextBox.scss @@ -79,37 +79,6 @@ audiotag:hover { right: 8px; position: absolute; } - .answer-icon { - position: absolute; - right: 10; - bottom: 10; - color: black; - display: inline-block; - font-size: 20px; - cursor: pointer; - border-radius: 50%; - } - - .q-icon { - position: absolute; - right: 6; - bottom: 10; - color: white; - display: inline-block; - font-size: 20px; - cursor: pointer; - border-radius: 50%; - } - - .edit-icon { - position: absolute; - right: 35; - bottom: 10; - display: inline-block; - font-size: 20px; - cursor: pointer; - border-radius: 50%; - } } .answer-tooltip { diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index e1ea93c3f..faef78469 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -114,7 +114,6 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent - {StrCast(this.Document.quiz)} - - }> -
- - -
- - ); - } - - @computed get editAnswer() { - return ( - - {this._editLabel ? 'save' : 'edit correct answer'} - - }> -
setupMoveUpEvents(e.target, e, returnFalse, emptyFunction, () => this.editLabelAnswer())}> - -
-
- ); - } - - editLabelAnswer = () => { - // when click the pencil, set the text to the quiz content. when click off, set the quiz text to that and set textbox to nothing. - if (!this._editLabel) { - this.dataDoc.text = StrCast(this.Document.quiz); - } else { - this.Document.quiz = RTFCast(this.dataDoc.text).Text; - this.dataDoc.text = ''; - } - this._editLabel = !this._editLabel; - }; - get fieldKey() { return this._fieldKey; } @@ -2252,8 +2209,6 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent ); -- cgit v1.2.3-70-g09d2