aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/StyleProvider.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-08-08 09:34:51 -0400
committerbobzel <zzzman@gmail.com>2022-08-08 09:34:51 -0400
commit26670c8b9eb6e2fd981c3a0997bff5556b60504b (patch)
tree770ca8f6fb9a70bab16c09bad74174552fb36eeb /src/client/views/StyleProvider.tsx
parent9f48faf496525aa6e435ee3dea7b1114962db9ce (diff)
made props.showTitle = '' override doc.showTitle. fixed de-autoLinking when text box is empty
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r--src/client/views/StyleProvider.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx
index a83163eb0..3bd4f5152 100644
--- a/src/client/views/StyleProvider.tsx
+++ b/src/client/views/StyleProvider.tsx
@@ -124,6 +124,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps
return (
(doc &&
!doc.presentationTargetDoc &&
+ props?.showTitle?.() !== '' &&
StrCast(
doc._showTitle,
props?.showTitle?.() ||