Skip to content

Commit f81d5eb

Browse files
authored
fix: location of popover wrt the cell (#1545)
1 parent 681d902 commit f81d5eb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/checklist_cell/checklist_cell.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ class GridChecklistCellState extends State<GridChecklistCell> {
4040
alignment: AlignmentDirectional.center,
4141
fit: StackFit.expand,
4242
children: [
43-
Padding(
44-
padding: GridSize.cellContentInsets,
45-
child: _wrapPopover(const ChecklistProgressBar()),
46-
),
43+
_wrapPopover(const ChecklistProgressBar()),
4744
InkWell(onTap: () => _popover.show()),
4845
],
4946
),
@@ -66,7 +63,10 @@ class GridChecklistCellState extends State<GridChecklistCell> {
6663
);
6764
},
6865
onClose: () => widget.onCellEditing.value = false,
69-
child: child,
66+
child: Padding(
67+
padding: GridSize.cellContentInsets,
68+
child: child,
69+
),
7070
);
7171
}
7272
}

frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/select_option_cell.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,7 @@ class _SelectOptionWrapState extends State<SelectOptionWrap> {
168168
alignment: AlignmentDirectional.center,
169169
fit: StackFit.expand,
170170
children: [
171-
Padding(
172-
padding: GridSize.cellContentInsets,
173-
child: _wrapPopover(child),
174-
),
171+
_wrapPopover(child),
175172
InkWell(onTap: () => _popover.show()),
176173
],
177174
);
@@ -196,7 +193,10 @@ class _SelectOptionWrapState extends State<SelectOptionWrap> {
196193
);
197194
},
198195
onClose: () => widget.onFocus?.call(false),
199-
child: child,
196+
child: Padding(
197+
padding: GridSize.cellContentInsets,
198+
child: child,
199+
),
200200
);
201201
}
202202

0 commit comments

Comments
 (0)