fix(core): fix ai input style in chat block and simply img rendering (#12943)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Style**
* Improved visual styling and cursor behavior for chat input send, stop,
and preference trigger buttons.
* Enhanced appearance and interactivity cues for the chat input
preference trigger.

* **Refactor**
* Simplified image preview grid by using CSS hover states for close
button visibility and switching to background images for previews.
* Streamlined image deletion process for a more intuitive user
experience.

* **Tests**
* Updated image upload test to wait for image container elements,
improving test reliability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Cats Juice
2025-06-30 14:22:04 +08:00
committed by GitHub
parent bbafce2c40
commit 32787bc88b
4 changed files with 49 additions and 63 deletions

View File

@@ -261,7 +261,7 @@ export class ChatPanelUtils {
) {
await this.uploadImages(page, images);
await page.waitForSelector('ai-chat-input img');
await page.waitForSelector('ai-chat-input .image-container');
await this.makeChat(page, text);
}