From befc40ba71b3096aa57a2ba337ff251592d40dbb Mon Sep 17 00:00:00 2001 From: appflowy Date: Thu, 25 Aug 2022 10:00:54 +0800 Subject: [PATCH] fix: clip the text when out of bound --- .../widgets/cell/select_option_cell/extension.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart index 6fdd8bf6f8..6b937a3c9b 100644 --- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart +++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/cell/select_option_cell/extension.dart @@ -91,8 +91,13 @@ class SelectOptionTag extends StatelessWidget { Widget build(BuildContext context) { return ChoiceChip( pressElevation: 1, - label: - FlowyText.medium(name, fontSize: 12, overflow: TextOverflow.ellipsis), + label: Flexible( + child: FlowyText.medium( + name, + fontSize: 12, + overflow: TextOverflow.clip, + ), + ), selectedColor: color, backgroundColor: color, labelPadding: const EdgeInsets.symmetric(horizontal: 6),