fix: center bottom composer between sidebar and teachers

This commit is contained in:
鲨鱼辣椒 committed 2026-09-29 16:15:05 +08:00
1 parent e812371973
commit 521e1ee167
8 files changed
+78 -15

No files matched your search

+5
View File
@@ -1112,6 +1112,11 @@ test('first PI Conversation is editable under 500 ms and submits before runtime
await expect(page.getByTestId('coding-message-composer')).toBeInViewport({ ratio: 1 });
expect(await page.getByTestId('coding-message-composer').evaluate(el => innerHeight - el.getBoundingClientRect().bottom)).toBeLessThan(40);
await expect(page.getByTestId('community-invitation')).toBeVisible();
expect(await page.getByTestId('community-invitation').evaluate(el => {
const composer = document.querySelector('[data-testid="coding-message-composer"]')!;
return composer.getBoundingClientRect().top - el.getBoundingClientRect().bottom;
})).toBeCloseTo(12, 0);
const pixelPng = Buffer.from(
'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=',