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
2025-02-21 15:36:55 +00:00
parent 2cf9a8f286
commit 734ca154ae
5 changed files with 245 additions and 231 deletions

View File

@@ -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'));
});
});