diff options
author | bobzel <zzzman@gmail.com> | 2021-10-01 13:16:45 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-10-01 13:16:45 -0400 |
commit | d4c435da7f4c291b444c2a7da9afa195c5f0dcac (patch) | |
tree | 8b0e7ea417ae11586d721f0e10e41d10527d42cd /src/client/views/StyleProvider.tsx | |
parent | cc5294616936c5e8a3a09f51fba4e6e89ce2c26c (diff) |
fixed ink to not have a bounding box when isLinkButton is set but rather to have an outline of the ink stroke
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 13afe4b3f..3f120d385 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -153,7 +153,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps case StyleProp.BoxShadow: { if (!doc || opacity() === 0) return undefined; // if it's not visible, then no shadow) - if (doc?.isLinkButton && doc.type !== DocumentType.LINK) return StrCast(doc?._linkButtonShadow, "lightblue 0em 0em 1em"); + if (doc?.isLinkButton && ![DocumentType.LINK, DocumentType.INK].includes(doc.type as any)) return StrCast(doc?._linkButtonShadow, "lightblue 0em 0em 1em"); switch (doc?.type) { case DocumentType.COL: |