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.

chore: fix edit bugs

appflowy349f599a43ad
diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart
index 357c5707a1..f707a29381 100644
--- a/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart
+++ b/frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart
@@ -78,7 +78,7 @@ class _BoardTextCellState extends State<BoardTextCell> {
child: BlocBuilder<BoardTextCellBloc, BoardTextCellState>(
builder: (context, state) {
Widget child;
- if (state.content.isEmpty) {
+ if (state.content.isEmpty && state.enableEdit == false) {
child = const SizedBox();
} else {
if (state.enableEdit) {
diff --git a/frontend/app_flowy/lib/plugins/board/presentation/card/card.dart b/frontend/app_flowy/lib/plugins/board/presentation/card/card.dart
index 9e3bd4dd48..924faef0a5 100644
--- a/frontend/app_flowy/lib/plugins/board/presentation/card/card.dart
+++ b/frontend/app_flowy/lib/plugins/board/presentation/card/card.dart
@@ -98,13 +98,17 @@ class _BoardCardState extends State<BoardCard> {
widget.isEditing,
cellNotifier,
);
- rowNotifier.insertCell(cellId, cellNotifier);
+
+ if (index == 0) {
+ rowNotifier.insertCell(cellId, cellNotifier);
+ }
child = Padding(
key: cellId.key(),
padding: const EdgeInsets.only(left: 4, right: 4),
child: child,
);
+
children.add(child);
},
);