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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: title position working incorrectly with document width setting (#7465)
Morn8d8fc9139180
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_title.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_title.dartindex 097276a394..2c5062d408 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_title.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/cover_title.dart@@ -1,7 +1,6 @@import 'package:appflowy/generated/locale_keys.g.dart';import 'package:appflowy/plugins/document/application/document_appearance_cubit.dart';import 'package:appflowy/plugins/document/presentation/editor_plugins/shared_context/shared_context.dart';-import 'package:appflowy/plugins/document/presentation/editor_style.dart';import 'package:appflowy/shared/text_field/text_filed_with_metric_lines.dart';import 'package:appflowy/workspace/application/appearance_defaults.dart';import 'package:appflowy/workspace/application/view/view_bloc.dart';@@ -93,7 +92,6 @@ class _InnerCoverTitleState extends State<_InnerCoverTitle> {builder: (context, state) {final appearance = context.read<DocumentAppearanceCubit>().state;return Container(- padding: EditorStyleCustomizer.documentPaddingWithOptionMenu,constraints: BoxConstraints(maxWidth: width),child: Theme(data: Theme.of(context).copyWith(diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dartindex c18e01b3dd..c4f0491596 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_cover_widget.dart@@ -196,7 +196,7 @@ class _DocumentCoverWidgetState extends State<DocumentCoverWidget> {],),Padding(- padding: const EdgeInsets.only(bottom: 12.0),+ padding: EdgeInsets.fromLTRB(offset, 0, offset, 12),child: MouseRegion(onEnter: (event) => isCoverTitleHovered.value = true,onExit: (event) => isCoverTitleHovered.value = false,