diff options
author | bobzel <zzzman@gmail.com> | 2020-12-11 21:39:24 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-11 21:39:24 -0500 |
commit | 159687d41ab9265744fda2ca50e30f0f3434686c (patch) | |
tree | 1bb50eab0e9c5221c5b852e32771375903e1a319 /src/client/views/StyleProvider.tsx | |
parent | 00d859f5c334fa105e3f6d572b74cb04fa9dd026 (diff) |
fixe documentdecoration selection of menu items in left sidebar
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 f51e94cfd..b01733f30 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -77,7 +77,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps case StyleProp.BorderRounding: return !doc ? undefined : StrCast(doc._borderRounding, StrCast(doc.borderRounding)); case StyleProp.HeaderMargin: return ([CollectionViewType.Stacking, CollectionViewType.Masonry].includes(doc?._viewType as any) || doc?.type === DocumentType.RTF) && doc?._showTitle && !doc?._showTitleHover ? 15 : 0; case StyleProp.ItemBackgroundColor: - let docColor: Opt<string> = StrCast(doc?._backgroundColor, StrCast(doc?.backgroundColor)); + const docColor: Opt<string> = StrCast(doc?._backgroundColor, StrCast(doc?.backgroundColor)); if (docColor) return docColor; if (MainView.Instance.LastButton === doc) return darkScheme() ? "dimgrey" : "lightgrey"; switch (doc?.type) { |