mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: link to page dialog offset (#3840)
This commit is contained in:
@ -24,8 +24,8 @@ void showLinkToPageMenu(
|
|||||||
|
|
||||||
final alignment = menuService.alignment;
|
final alignment = menuService.alignment;
|
||||||
final offset = menuService.offset;
|
final offset = menuService.offset;
|
||||||
final top = alignment == Alignment.bottomLeft ? offset.dy : null;
|
final top = alignment == Alignment.topLeft ? offset.dy : null;
|
||||||
final bottom = alignment == Alignment.topLeft ? offset.dy : null;
|
final bottom = alignment == Alignment.bottomLeft ? offset.dy : null;
|
||||||
|
|
||||||
keepEditorFocusNotifier.increase();
|
keepEditorFocusNotifier.increase();
|
||||||
late OverlayEntry linkToPageMenuEntry;
|
late OverlayEntry linkToPageMenuEntry;
|
||||||
@ -246,7 +246,6 @@ extension on ViewLayoutPB {
|
|||||||
case ViewLayoutPB.Calendar:
|
case ViewLayoutPB.Calendar:
|
||||||
return LocaleKeys.document_slashMenu_calendar_selectACalendarToLinkTo
|
return LocaleKeys.document_slashMenu_calendar_selectACalendarToLinkTo
|
||||||
.tr();
|
.tr();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw Exception('Unknown layout type');
|
throw Exception('Unknown layout type');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user