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: text overflow when editing a filter

Richard Shiue96410b2d320d
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checkbox.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checkbox.dart
index 4bbb535762..23e3ef2b7b 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checkbox.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checkbox.dart
@@ -107,7 +107,12 @@ class _CheckboxFilterEditorState extends State<CheckboxFilterEditor> {
height: 20,
child: Row(
children: [
- FlowyText(state.filterInfo.fieldInfo.name),
+ Expanded(
+ child: FlowyText(
+ state.filterInfo.fieldInfo.name,
+ overflow: TextOverflow.ellipsis,
+ ),
+ ),
const HSpace(4),
CheckboxFilterConditionList(
filterInfo: state.filterInfo,
@@ -118,7 +123,6 @@ class _CheckboxFilterEditorState extends State<CheckboxFilterEditor> {
.add(CheckboxFilterEditorEvent.updateCondition(condition));
},
),
- const Spacer(),
DisclosureButton(
popoverMutex: popoverMutex,
onAction: (action) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checklist/checklist.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checklist/checklist.dart
index fef7c0276d..c8706f85e3 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checklist/checklist.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/checklist/checklist.dart
@@ -91,12 +91,16 @@ class ChecklistState extends State<ChecklistFilterEditor> {
height: 20,
child: Row(
children: [
- FlowyText(state.filterInfo.fieldInfo.name),
+ Expanded(
+ child: FlowyText(
+ state.filterInfo.fieldInfo.name,
+ overflow: TextOverflow.ellipsis,
+ ),
+ ),
const HSpace(4),
ChecklistFilterConditionList(
filterInfo: state.filterInfo,
),
- const Spacer(),
DisclosureButton(
popoverMutex: widget.popoverMutex,
onAction: (action) {
diff --git a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/select_option.dart b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/select_option.dart
index 334086adfe..419ee988a4 100644
--- a/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/select_option.dart
+++ b/frontend/appflowy_flutter/lib/plugins/database_view/grid/presentation/widgets/filter/choicechip/select_option/select_option.dart
@@ -142,7 +142,12 @@ class _SelectOptionFilterEditorState extends State<SelectOptionFilterEditor> {
height: 20,
child: Row(
children: [
- FlowyText(state.filterInfo.fieldInfo.name),
+ Expanded(
+ child: FlowyText(
+ state.filterInfo.fieldInfo.name,
+ overflow: TextOverflow.ellipsis,
+ ),
+ ),
const HSpace(4),
SelectOptionFilterConditionList(
filterInfo: state.filterInfo,
@@ -153,7 +158,6 @@ class _SelectOptionFilterEditorState extends State<SelectOptionFilterEditor> {
);
},
),
- const Spacer(),
DisclosureButton(
popoverMutex: popoverMutex,
onAction: (action) {