refactor(core): use image preview component in chat (#10357)

[BS-2421](https://linear.app/affine-design/issue/BS-2421/chat-block-and-chat-panel-input-render-images-时存在内存泄露风险)
This commit is contained in:
donteatfriedrice committed 2025-02-21 15:36:55 +00:00
1 parent 2cf9a8f286
commit 734ca154ae
5 files changed
+245 -231

No files matched your search

@@ -806,7 +806,7 @@ test.describe('chat with block', () => {
.waitForSelector('.ai-item-continue-with-ai')
.then(i => i.click());
await page
.waitForSelector('chat-panel-input .chat-panel-images')
.waitForSelector('chat-panel-input image-preview-grid')
.then(el => el.waitForElementState('visible'));
});
});