diff options
| author | bobzel <zzzman@gmail.com> | 2025-03-05 14:54:18 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-03-05 14:54:18 -0500 |
| commit | db3bdb19ff7bc1c69c544797c05a6db3b72b1464 (patch) | |
| tree | fe01be9276ffcbaf9e27bb17e8f1fe7a25b22505 /src/client/views/smartdraw/DrawingFillHandler.tsx | |
| parent | 9688e3bb1e67336fe57e11b186936830d5483b06 (diff) | |
added:hover mode for images to make primary image fade in instead of alternate.
Diffstat (limited to 'src/client/views/smartdraw/DrawingFillHandler.tsx')
| -rw-r--r-- | src/client/views/smartdraw/DrawingFillHandler.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/smartdraw/DrawingFillHandler.tsx b/src/client/views/smartdraw/DrawingFillHandler.tsx index 0a30b14b8..c672bc718 100644 --- a/src/client/views/smartdraw/DrawingFillHandler.tsx +++ b/src/client/views/smartdraw/DrawingFillHandler.tsx @@ -1,6 +1,7 @@ import { imageUrlToBase64 } from '../../../ClientUtils'; import { Doc, StrListCast } from '../../../fields/Doc'; import { DocData } from '../../../fields/DocSymbols'; +import { List } from '../../../fields/List'; import { DocCast, ImageCast } from '../../../fields/Types'; import { ImageField } from '../../../fields/URLField'; import { Upload } from '../../../server/SharedMediaTypes'; @@ -53,7 +54,10 @@ export class DrawingFillHandler { undefined, Docs.Create.ImageDocument(info.accessPaths.agnostic.client, { ai: 'firefly', + tags: new List<string>(['@ai']), title: newPrompt, + _data_usePath: 'alternate:hover', + data_alternates: new List<Doc>([drawing]), ai_firefly_prompt: newPrompt, _width: 500, data_nativeWidth: info.nativeWidth, |
