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

fix: clip the text when out of bound
This commit is contained in:
Nathan.fooo 2022-08-25 10:17:42 +08:00 committed by GitHub
commit 3507bbc35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),