fix: add overflow ellipsis in FieldCellButton

This commit is contained in:
Alexandre Moreau 2022-10-17 19:59:44 +02:00
parent 35fbf99fb1
commit 0e278ddf3f

View File

@ -167,10 +167,12 @@ class FieldCellButton extends StatelessWidget {
onTap: onTap, onTap: onTap,
leftIcon: svgWidget(field.fieldType.iconName(), color: theme.iconColor), leftIcon: svgWidget(field.fieldType.iconName(), color: theme.iconColor),
text: FlowyText.medium( text: FlowyText.medium(
field.name, Characters(field.name)
fontSize: 12, .replaceAll(Characters(''), Characters('\u{200B}'))
maxLines: maxLines, .toString(),
), fontSize: 12,
maxLines: maxLines,
overflow: TextOverflow.ellipsis),
margin: GridSize.cellContentInsets, margin: GridSize.cellContentInsets,
); );
} }