mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-03 10:41:13 +00:00
fix: unable to delete the callout block when it's in the first line (#7442)
This commit is contained in:
parent
fe6217bd82
commit
655de30df5
@ -700,7 +700,14 @@ TableBlockComponentBuilder _buildTableBlockComponentBuilder(
|
||||
BlockComponentConfiguration configuration,
|
||||
) {
|
||||
return TableBlockComponentBuilder(
|
||||
menuBuilder: (node, editorState, position, dir, onBuild, onClose) =>
|
||||
menuBuilder: (
|
||||
node,
|
||||
editorState,
|
||||
position,
|
||||
dir,
|
||||
onBuild,
|
||||
onClose,
|
||||
) =>
|
||||
TableMenu(
|
||||
node: node,
|
||||
editorState: editorState,
|
||||
@ -727,7 +734,14 @@ TableCellBlockComponentBuilder _buildTableCellBlockComponentBuilder(
|
||||
}
|
||||
return buildEditorCustomizedColor(context, node, colorString);
|
||||
},
|
||||
menuBuilder: (node, editorState, position, dir, onBuild, onClose) =>
|
||||
menuBuilder: (
|
||||
node,
|
||||
editorState,
|
||||
position,
|
||||
dir,
|
||||
onBuild,
|
||||
onClose,
|
||||
) =>
|
||||
TableMenu(
|
||||
node: node,
|
||||
editorState: editorState,
|
||||
|
||||
@ -154,7 +154,10 @@ class _AppFlowyEditorPageState extends State<AppFlowyEditorPage>
|
||||
]);
|
||||
|
||||
indentableBlockTypes.add(ToggleListBlockKeys.type);
|
||||
convertibleBlockTypes.add(ToggleListBlockKeys.type);
|
||||
convertibleBlockTypes.addAll([
|
||||
ToggleListBlockKeys.type,
|
||||
CalloutBlockKeys.type,
|
||||
]);
|
||||
|
||||
effectiveScrollController = widget.scrollController ?? ScrollController();
|
||||
// disable the color parse in the HTML decoder.
|
||||
|
||||
@ -210,6 +210,9 @@ class _CalloutBlockComponentWidgetState
|
||||
key: ValueKey(widget.node.id + emoji.emoji),
|
||||
enable: editorState.editable,
|
||||
title: '',
|
||||
margin: UniversalPlatform.isMobile
|
||||
? const EdgeInsets.symmetric(vertical: 2.0, horizontal: 10.0)
|
||||
: EdgeInsets.zero,
|
||||
emoji: emoji,
|
||||
emojiSize: emojiSize,
|
||||
showBorder: false,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user