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
feat(editor): remove flag control for database full-width (#9265)
zzj372040d8d83b4ac1
diff --git a/blocksuite/blocks/src/database-block/database-block.ts b/blocksuite/blocks/src/database-block/database-block.tsindex 7331400cb6..3d14beefb2 100644--- a/blocksuite/blocks/src/database-block/database-block.ts+++ b/blocksuite/blocks/src/database-block/database-block.ts@@ -379,9 +379,6 @@ export class DatabaseBlockComponent extends CaptionedBlockComponent<}listenFullWidthChange() {- if (!this.doc.awarenessStore.getFlag('enable_database_full_width')) {- return;- }if (this.std.get(DocModeProvider).getEditorMode() === 'edgeless') {return;}diff --git a/blocksuite/tests-legacy/selection/native.spec.ts b/blocksuite/tests-legacy/selection/native.spec.tsindex bd2a8163fa..11b26a3899 100644--- a/blocksuite/tests-legacy/selection/native.spec.ts+++ b/blocksuite/tests-legacy/selection/native.spec.ts@@ -1780,7 +1780,7 @@ test('unexpected scroll when clicking padding area', async ({ page }) => {assertExists(databaseRect);await page.mouse.click(databaseRect.x + databaseRect.width + 10,- databaseRect.y + 10+ databaseRect.y + 100);const newDatabaseRect = await database.boundingBox();// not scroll