浏览代码

fix undo redo issue

appflowy 3 年之前
父节点
当前提交
513423a9be

+ 4 - 6
frontend/app_flowy/lib/workspace/presentation/stack_page/doc/doc_stack_page.dart

@@ -179,15 +179,13 @@ class DocumentShareButton extends StatelessWidget {
               child: Selector<AppearanceSettingModel, AppLanguage>(
                 selector: (ctx, notifier) => notifier.language,
                 builder: (ctx, _, child) => ConstrainedBox(
-                  constraints: BoxConstraints(
-                    maxHeight: 30,
-                    minWidth: buttonWidth,
-                    maxWidth: 100,
+                  constraints: BoxConstraints.expand(
+                    height: 30,
+                    // minWidth: buttonWidth,
+                    width: 100,
                   ),
                   child: RoundedTextButton(
                     title: LocaleKeys.shareAction_buttonText.tr(),
-                    // height: 30,
-                    // width: buttonWidth,
                     fontSize: 12,
                     borderRadius: Corners.s6Border,
                     color: Colors.lightBlue,

+ 1 - 1
frontend/app_flowy/lib/workspace/presentation/stack_page/doc/widget/toolbar/history_button.dart

@@ -26,7 +26,7 @@ class FlowyHistoryButton extends StatelessWidget {
         icon: icon,
         iconSize: iconSize,
         controller: controller,
-        undo: true,
+        undo: undo,
       ),
     );
   }