mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: add overflow ellipsis in FieldCellButton
This commit is contained in:
parent
35fbf99fb1
commit
0e278ddf3f
@ -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)
|
||||||
|
.replaceAll(Characters(''), Characters('\u{200B}'))
|
||||||
|
.toString(),
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
maxLines: maxLines,
|
maxLines: maxLines,
|
||||||
),
|
overflow: TextOverflow.ellipsis),
|
||||||
margin: GridSize.cellContentInsets,
|
margin: GridSize.cellContentInsets,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user