diff options
author | bobzel <zzzman@gmail.com> | 2022-10-31 09:24:23 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-10-31 09:24:23 -0400 |
commit | 470af89b6ddc17dda613705d599a0ff221d0b927 (patch) | |
tree | 7bcfc7adbe145cc45c1a7eed849cef040ec66521 /src/client/views/StyleProvider.tsx | |
parent | 627c2aa72f61a888866840810a7d31cb0648437b (diff) |
cleaned up collection linear view a bit.
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r-- | src/client/views/StyleProvider.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index bc8bd7b7f..869570a17 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -18,6 +18,7 @@ import { FieldViewProps } from './nodes/FieldView'; import { SliderBox } from './nodes/SliderBox'; import './StyleProvider.scss'; import React = require('react'); +import { Shadows } from 'browndash-components'; export enum StyleProp { TreeViewIcon = 'treeViewIcon', @@ -250,7 +251,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.boxShadow === 'standard') return Shadows.STANDARD_SHADOW; if (doc?.isLinkButton && ![DocumentType.LINK, DocumentType.INK].includes(doc.type as any)) return StrCast(doc?._linkButtonShadow, 'lightblue 0em 0em 1em'); switch (doc?.type) { |