From 0e278ddf3f903ba1af6530103088ee9b90ae5ea7 Mon Sep 17 00:00:00 2001 From: Alexandre Moreau Date: Mon, 17 Oct 2022 19:59:44 +0200 Subject: [PATCH] fix: add overflow ellipsis in FieldCellButton --- .../grid/presentation/widgets/header/field_cell.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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, ); }