Skip to content

Commit befc40b

Browse files
committed
fix: clip the text when out of bound
1 parent 0d39afc commit befc40b

File tree

1 file changed

+7
-2
lines changed
  • frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ class SelectOptionTag extends StatelessWidget {
9191
Widget build(BuildContext context) {
9292
return ChoiceChip(
9393
pressElevation: 1,
94-
label:
95-
FlowyText.medium(name, fontSize: 12, overflow: TextOverflow.ellipsis),
94+
label: Flexible(
95+
child: FlowyText.medium(
96+
name,
97+
fontSize: 12,
98+
overflow: TextOverflow.clip,
99+
),
100+
),
96101
selectedColor: color,
97102
backgroundColor: color,
98103
labelPadding: const EdgeInsets.symmetric(horizontal: 6),

0 commit comments

Comments
 (0)