There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(component): banner should not affect the editor layout (#7128)
fundon5b8b2bbf4875
diff --git a/packages/frontend/component/src/components/affine-banner/index.css.ts b/packages/frontend/component/src/components/affine-banner/index.css.tsindex e003a5ae8b..bcadb24869 100644--- a/packages/frontend/component/src/components/affine-banner/index.css.ts+++ b/packages/frontend/component/src/components/affine-banner/index.css.ts@@ -39,7 +39,8 @@ export const tipsContainer = style({justifyContent: 'space-between',alignItems: 'center',padding: '12px 16px',- position: 'sticky',+ position: 'absolute',+ zIndex: 1,gap: '16px',containerType: 'inline-size','@media': {diff --git a/tests/affine-local/e2e/peek-view.spec.ts b/tests/affine-local/e2e/peek-view.spec.tsindex 0cea451fe8..d2a90752f3 100644--- a/tests/affine-local/e2e/peek-view.spec.ts+++ b/tests/affine-local/e2e/peek-view.spec.ts@@ -121,6 +121,9 @@ test('can open peek view for embedded frames', async ({ page }) => {// enter F to create a frameawait page.keyboard.press('f');+ // close affine-banner+ await page.locator('[data-testid=local-demo-tips-close-button]').click();+// insert the frame to pageawait page.locator('edgeless-change-frame-button:has-text("Insert into Page")')