diff options
author | bobzel <zzzman@gmail.com> | 2020-09-29 21:28:33 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-29 21:28:33 -0400 |
commit | cb18f848b44705a25f786f9a0e678095101f9e01 (patch) | |
tree | dad6b5dc95a536c2d5c0f27d7810c801161256eb | |
parent | 0d5bd277b842136a78760c64f0c0265ccfa89b60 (diff) |
fixed highlighting of sidebar handle when no annotations are accessible
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 93eb94854..15e35ce72 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1541,7 +1541,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp } @computed get sidebarHandle() { - const annotated = DocListCast(this.dataDoc[this.annotationKey]).length; + const annotated = DocListCast(this.dataDoc[this.annotationKey]).filter(d => d?.title).length; return !this.props.isSelected() && !(annotated && !this.sidebarWidth()) ? (null) : <div className="formattedTextBox-sidebar-handle" style={{ left: `max(0px, calc(100% - ${this.sidebarWidthPercent} ${this.sidebarWidth() ? "- 5px" : "- 10px"}))`, background: annotated ? "lightBlue" : undefined }} |