mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix(component): banner should not affect the editor layout (#7128)
Same as #6605
This commit is contained in:
@@ -39,7 +39,8 @@ export const tipsContainer = style({
|
|||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
padding: '12px 16px',
|
padding: '12px 16px',
|
||||||
position: 'sticky',
|
position: 'absolute',
|
||||||
|
zIndex: 1,
|
||||||
gap: '16px',
|
gap: '16px',
|
||||||
containerType: 'inline-size',
|
containerType: 'inline-size',
|
||||||
'@media': {
|
'@media': {
|
||||||
|
|||||||
@@ -121,6 +121,9 @@ test('can open peek view for embedded frames', async ({ page }) => {
|
|||||||
// enter F to create a frame
|
// enter F to create a frame
|
||||||
await page.keyboard.press('f');
|
await page.keyboard.press('f');
|
||||||
|
|
||||||
|
// close affine-banner
|
||||||
|
await page.locator('[data-testid=local-demo-tips-close-button]').click();
|
||||||
|
|
||||||
// insert the frame to page
|
// insert the frame to page
|
||||||
await page
|
await page
|
||||||
.locator('edgeless-change-frame-button:has-text("Insert into Page")')
|
.locator('edgeless-change-frame-button:has-text("Insert into Page")')
|
||||||
|
|||||||
Reference in New Issue
Block a user