diff options
author | geireann <geireann.lindfield@gmail.com> | 2023-09-14 13:50:17 -0400 |
---|---|---|
committer | geireann <geireann.lindfield@gmail.com> | 2023-09-14 13:50:17 -0400 |
commit | 0366ed509484a7135b0700bfc9e711489a3a2467 (patch) | |
tree | 4e35020323b27f4c2204fbbcc2d95b65b7a9db58 /src/client/views/nodes/DocumentView.tsx | |
parent | 36bc0bf938086b1508824730ca82faab5f5099b2 (diff) |
turn off link anchor dot display when link arrows are shown
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 701d366fa..72c1a9806 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -967,6 +967,10 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps case StyleProp.ShowTitle: return ''; case StyleProp.PointerEvents: return 'none'; case StyleProp.Highlighting: return undefined; + case StyleProp.Opacity: { + const filtered = DocUtils.FilterDocs(this.directLinks, this.props.childFilters?.() ?? [], []).filter(d => d.link_displayLine || Doc.UserDoc().showLinkLines); + return filtered.some(link => link._link_displayArrow) ? 0 : undefined; + } } return this.props.styleProvider?.(doc, props, property); }; |