diff options
author | bobzel <zzzman@gmail.com> | 2024-05-20 15:59:52 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-05-20 15:59:52 -0400 |
commit | bb11e8c07f86b1ba0148f1e406a070c14e9abc7c (patch) | |
tree | 20fa2963e56a94550daf2a41c06d1ed7df9cd1b6 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 46a2e250a40f30ff0bdfb4471f3905364e5ad803 (diff) |
lint cleanup and some flashcard fixes
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 9ccd95f24..9f2a9b8e1 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -925,7 +925,9 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB const usepath = this.layoutDoc[`_${this._props.fieldKey}_usePath`]; appearanceItems.push({ description: (this.layoutDoc[`_${this._props.fieldKey}_usePath`] === 'alternate:hover' ? 'no hover' : 'hover') + ' to show alt content', - event: () => (this.layoutDoc[`_${this._props.fieldKey}_usePath`] = usepath === 'alternate' || usepath === undefined ? 'alternate:hover' : undefined), + event: () => { + this.layoutDoc[`_${this._props.fieldKey}_usePath`] = usepath === 'alternate' || usepath === undefined ? 'alternate:hover' : undefined; + }, icon: !this.Document._layout_enableAltContentUI ? 'eye-slash' : 'eye', }); } |