diff options
| author | bobzel <zzzman@gmail.com> | 2024-01-05 12:55:09 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-01-05 12:55:09 -0500 |
| commit | 5027a2e1e75294532c8bb2259a879bca75c7ec35 (patch) | |
| tree | 03b4f25f400dc5ba71a6c779f2f66e6ee5eaae23 /src/client/views/StyleProvider.tsx | |
| parent | c8cd18e9108d25035f5239b865ddd4cd82d3a85b (diff) | |
fixed up text inlining to fix autoheight, to show cursor better, and to highlight selection of inline.
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
| -rw-r--r-- | src/client/views/StyleProvider.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index ce69dcc41..d077543f1 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -258,6 +258,10 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewInter ? `gray ${StrCast(doc.layout_boxShadow, `0vw 0vw ${(lockedPosition() ? 100 : 50) / (docProps?.NativeDimScaling?.() || 1)}px`)}` // if it's just in a cluster, make the shadown roughly match the cluster border extent : lockedPosition() ? undefined // if it's a background & has a cluster color, make the shadow spread really big + : StrCast(doc.layout_fieldKey).includes('_inline') // if doc is an inline document in a text box + ? `${Colors.DARK_GRAY} ${StrCast(doc.layout_boxShadow, '0vw 0vw 0.1vw')}` + : DocCast(doc.embedContainer)?.type=== DocumentType.RTF // if doc is embedded in a text document (but not an inline) + ? `${Colors.DARK_GRAY} ${StrCast(doc.layout_boxShadow, '0.2vw 0.2vw 0.8vw')}` : StrCast(doc.layout_boxShadow, ''); } } |
