mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
feat(editor): remove flag control for database full-width (#9265)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user