feat(editor): remove flag control for database full-width (#9265)

This commit is contained in:
zzj3720
2024-12-26 05:46:08 +00:00
parent 42ab507d30
commit 40d8d83b4a
2 changed files with 1 additions and 4 deletions

View File

@@ -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;
}

View File

@@ -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