Browse Source

Merge pull request #902 from AppFlowy-IO/fix/clip_select_option_text

fix: clip the text when out of bound
Nathan.fooo 2 years ago
parent
commit
3507bbc35c

+ 7 - 2
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),