mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-24 09:38:25 +00:00
fix: clip the text when out of bound
This commit is contained in:
parent
0d39afca2f
commit
befc40ba71
1 changed files with 7 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue