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: the button sizes in math equation input field are not same (#4741)

Lucas.Xudfe3b0a92937
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_menu.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_menu.dart
index 7dbced9728..64ee4f9f29 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_menu.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/image/image_menu.dart
@@ -149,7 +149,6 @@ class _ImageAlignButtonState extends State<_ImageAlignButton> {
child: MenuBlockButton(
tooltip: LocaleKeys.document_plugins_optionAction_align.tr(),
iconData: iconFor(align),
- onTap: () {},
),
popupBuilder: (_) {
preventMenuClose();
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart
index 0fa144b02e..5b9bfda88f 100644
--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart
+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart
@@ -222,6 +222,7 @@ class MathEquationBlockComponentWidgetState
actions: [
SecondaryTextButton(
LocaleKeys.button_cancel.tr(),
+ mode: TextButtonMode.big,
onPressed: () => dismiss(context),
),
PrimaryTextButton(