Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: link to page dialog offset (#3840)

Mathias Mogensen54dbcb7c5e51
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/link_to_page_widget.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/link_to_page_widget.dart
index d670f69801..ff5ae9984a 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/link_to_page_widget.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/base/link_to_page_widget.dart
@@ -24,8 +24,8 @@ void showLinkToPageMenu(
final alignment = menuService.alignment;
final offset = menuService.offset;
- final top = alignment == Alignment.bottomLeft ? offset.dy : null;
- final bottom = alignment == Alignment.topLeft ? offset.dy : null;
+ final top = alignment == Alignment.topLeft ? offset.dy : null;
+ final bottom = alignment == Alignment.bottomLeft ? offset.dy : null;
keepEditorFocusNotifier.increase();
late OverlayEntry linkToPageMenuEntry;
@@ -246,7 +246,6 @@ extension on ViewLayoutPB {
case ViewLayoutPB.Calendar:
return LocaleKeys.document_slashMenu_calendar_selectACalendarToLinkTo
.tr();
-
default:
throw Exception('Unknown layout type');
}