mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: Filter UI popover pixels overflow with dynamic width and height (#2554)
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
This commit is contained in:
parent
f9e7b5ffa4
commit
e69e72e3bd
@ -117,9 +117,15 @@ class _TextFilterEditorState extends State<TextFilterEditor> {
|
|||||||
height: 20,
|
height: 20,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
FlowyText(state.filterInfo.fieldInfo.name),
|
Expanded(
|
||||||
|
child: FlowyText(
|
||||||
|
state.filterInfo.fieldInfo.name,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
|
),
|
||||||
|
),
|
||||||
const HSpace(4),
|
const HSpace(4),
|
||||||
TextFilterConditionPBList(
|
Expanded(
|
||||||
|
child: TextFilterConditionPBList(
|
||||||
filterInfo: state.filterInfo,
|
filterInfo: state.filterInfo,
|
||||||
popoverMutex: popoverMutex,
|
popoverMutex: popoverMutex,
|
||||||
onCondition: (condition) {
|
onCondition: (condition) {
|
||||||
@ -128,7 +134,8 @@ class _TextFilterEditorState extends State<TextFilterEditor> {
|
|||||||
.add(TextFilterEditorEvent.updateCondition(condition));
|
.add(TextFilterEditorEvent.updateCondition(condition));
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
const Spacer(),
|
),
|
||||||
|
const HSpace(4),
|
||||||
DisclosureButton(
|
DisclosureButton(
|
||||||
popoverMutex: popoverMutex,
|
popoverMutex: popoverMutex,
|
||||||
onAction: (action) {
|
onAction: (action) {
|
||||||
|
@ -32,6 +32,7 @@ class ConditionButton extends StatelessWidget {
|
|||||||
conditionName,
|
conditionName,
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
color: AFThemeExtension.of(context).textColor,
|
color: AFThemeExtension.of(context).textColor,
|
||||||
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
margin: const EdgeInsets.symmetric(horizontal: 4),
|
margin: const EdgeInsets.symmetric(horizontal: 4),
|
||||||
radius: const BorderRadius.all(Radius.circular(2)),
|
radius: const BorderRadius.all(Radius.circular(2)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user