diff options
author | mehekj <mehek.jethani@gmail.com> | 2021-10-07 16:48:33 -0400 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2021-10-07 16:48:33 -0400 |
commit | 8ff12370498a99d712adbf442004f13e51e2e381 (patch) | |
tree | e4ff5763ce28dfefffda320845ebf82fe259f002 /src/client/views/StyleProvider.tsx | |
parent | 11571a4db8907467b1a17d8fe14c80a9e47c6030 (diff) |
merge conflict fixes
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 830251e52..45727ae67 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -181,7 +181,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps if (doc?.type !== DocumentType.INK && layer === true) return "all"; return undefined; case StyleProp.Decorations: - if (props?.ContainingCollectionDoc?._viewType === CollectionViewType.Freeform) { + if (props?.ContainingCollectionDoc?._viewType === CollectionViewType.Freeform || doc?.x !== undefined || doc?.y !== undefined) { return doc && (isBackground() || selected) && (props?.renderDepth || 0) > 0 && ((doc.type === DocumentType.COL && doc._viewType !== CollectionViewType.Pile) || [DocumentType.RTF, DocumentType.IMG, DocumentType.INK].includes(doc.type as DocumentType)) ? <div className="styleProvider-lock" onClick={() => toggleBackground(doc)}> |