Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: add overflow ellipsis in FieldCellButton

Alexandre Moreau0e278ddf3f90
diff --git a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/field_cell.dart b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/field_cell.dart
index 80b94762ec..59160565c9 100755
--- a/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/field_cell.dart
+++ b/frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/field_cell.dart
@@ -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,
);
}