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,
leftIcon: svgWidget(field.fieldType.iconName(), color: theme.iconColor),
text: FlowyText.medium(
field.name,
fontSize: 12,
maxLines: maxLines,
),
Characters(field.name)
.replaceAll(Characters(''), Characters('\u{200B}'))
.toString(),
fontSize: 12,
maxLines: maxLines,
overflow: TextOverflow.ellipsis),
margin: GridSize.cellContentInsets,
);
}