Skip to content

Commit 349f599

Browse files
committed
chore: fix edit bugs
1 parent a9f5f8d commit 349f599

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

frontend/app_flowy/lib/plugins/board/presentation/card/board_text_cell.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class _BoardTextCellState extends State<BoardTextCell> {
7878
child: BlocBuilder<BoardTextCellBloc, BoardTextCellState>(
7979
builder: (context, state) {
8080
Widget child;
81-
if (state.content.isEmpty) {
81+
if (state.content.isEmpty && state.enableEdit == false) {
8282
child = const SizedBox();
8383
} else {
8484
if (state.enableEdit) {

frontend/app_flowy/lib/plugins/board/presentation/card/card.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,17 @@ class _BoardCardState extends State<BoardCard> {
9898
widget.isEditing,
9999
cellNotifier,
100100
);
101-
rowNotifier.insertCell(cellId, cellNotifier);
101+
102+
if (index == 0) {
103+
rowNotifier.insertCell(cellId, cellNotifier);
104+
}
102105

103106
child = Padding(
104107
key: cellId.key(),
105108
padding: const EdgeInsets.only(left: 4, right: 4),
106109
child: child,
107110
);
111+
108112
children.add(child);
109113
},
110114
);

0 commit comments

Comments
 (0)