mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +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() {
|
listenFullWidthChange() {
|
||||||
if (!this.doc.awarenessStore.getFlag('enable_database_full_width')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (this.std.get(DocModeProvider).getEditorMode() === 'edgeless') {
|
if (this.std.get(DocModeProvider).getEditorMode() === 'edgeless') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1780,7 +1780,7 @@ test('unexpected scroll when clicking padding area', async ({ page }) => {
|
|||||||
assertExists(databaseRect);
|
assertExists(databaseRect);
|
||||||
await page.mouse.click(
|
await page.mouse.click(
|
||||||
databaseRect.x + databaseRect.width + 10,
|
databaseRect.x + databaseRect.width + 10,
|
||||||
databaseRect.y + 10
|
databaseRect.y + 100
|
||||||
);
|
);
|
||||||
const newDatabaseRect = await database.boundingBox();
|
const newDatabaseRect = await database.boundingBox();
|
||||||
// not scroll
|
// not scroll
|
||||||
|
|||||||
Reference in New Issue
Block a user