diff options
author | bobzel <zzzman@gmail.com> | 2021-07-26 12:35:25 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-07-26 12:35:25 -0400 |
commit | 26e9e0a554ee5aff001e2bc10b6802a4e830b63c (patch) | |
tree | 30852aac1262afe6699071c52a4e7d710f92f433 /src/client/views/collections/CollectionSubView.tsx | |
parent | c7a0a346238c55b8c223798f75cef758418aa051 (diff) |
cleaned up pile view a bit so that it doesn't scale up huge when there's one document. made the pile be round and drop-shadowed. made the pile go away immediately if there are no documents. made it work with undo.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index ca45536f4..f39443ae2 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -453,7 +453,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?: generatedDocuments.length > 1 ? generatedDocuments.map(d => { DocUtils.iconify(d); return d; }) : []; if (completed) completed(set); else { - if (isFreeformView) { + if (isFreeformView && generatedDocuments.length > 1) { addDocument(DocUtils.pileup(generatedDocuments, options.x!, options.y!)!); } else { generatedDocuments.forEach(addDocument); |