diff options
| author | Sophie Zhang <sophie_zhang@brown.edu> | 2023-11-16 01:30:42 -0500 |
|---|---|---|
| committer | Sophie Zhang <sophie_zhang@brown.edu> | 2023-11-16 01:30:42 -0500 |
| commit | 6a4de8d05ce46dc29ac69f696c419a57e604f516 (patch) | |
| tree | c0368c0df9dec2a6f2835707681c215aae448e71 /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | 953627770c09cbb6918a0816f4e5974bb57044e1 (diff) | |
sorting?
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index fb2de5647..b0be060bd 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1820,10 +1820,10 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection @action gptStyling = async () => { this.openProperties(); + PropertiesView.Instance?.setGeneratedStyles([]); console.log('Title', this.rootDoc.title); console.log('bgcolor', this.layoutDoc._backgroundColor); // doc.backgroundColor - console.log('styling'); const inputDocs = this.childDocs.filter(doc => doc.type == 'rich text'); const imgDocs = this.childDocs.filter(doc => doc.type == 'image'); const imgUrls = imgDocs.map(doc => this.choosePath((doc.data as ImageField).url)); @@ -1837,6 +1837,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection console.log('Hexes', colorHexes); PropertiesView.Instance?.setInputDocs(inputDocs); + // also pass it colors const gptInput = inputDocs.map((doc, i) => ({ id: i, |
