mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-09-25 08:19:29 +00:00
fix: message hover action flashing (#7552)
This commit is contained in:
parent
2ea8e831cd
commit
eddb623fba
@ -217,22 +217,22 @@ class _ChatAIMessageHoverState extends State<ChatAIMessageHover> {
|
|||||||
setState(() => hoverActionBar = false);
|
setState(() => hoverActionBar = false);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: SizedBox(
|
||||||
constraints: BoxConstraints(
|
width: 784,
|
||||||
maxWidth: 784,
|
height: DesktopAIChatSizes.messageActionBarIconSize +
|
||||||
maxHeight: DesktopAIChatSizes.messageActionBarIconSize +
|
DesktopAIChatSizes.messageHoverActionBarPadding.vertical,
|
||||||
DesktopAIChatSizes
|
|
||||||
.messageHoverActionBarPadding.vertical,
|
|
||||||
),
|
|
||||||
child: hoverBubble || hoverActionBar || overrideVisibility
|
child: hoverBubble || hoverActionBar || overrideVisibility
|
||||||
? AIMessageActionBar(
|
? Align(
|
||||||
message: widget.message,
|
alignment: AlignmentDirectional.centerStart,
|
||||||
showDecoration: true,
|
child: AIMessageActionBar(
|
||||||
onRegenerate: widget.onRegenerate,
|
message: widget.message,
|
||||||
onChangeFormat: widget.onChangeFormat,
|
showDecoration: true,
|
||||||
onOverrideVisibility: (visibility) {
|
onRegenerate: widget.onRegenerate,
|
||||||
overrideVisibility = visibility;
|
onChangeFormat: widget.onChangeFormat,
|
||||||
},
|
onOverrideVisibility: (visibility) {
|
||||||
|
overrideVisibility = visibility;
|
||||||
|
},
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user