mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 14:47:13 -04:00
fix: some UI issues
This commit is contained in:
parent
e21b48b7d3
commit
3eb5b12a53
2 changed files with 9 additions and 1 deletions
|
@ -166,7 +166,7 @@ class CustomLinkPreviewWidget extends StatelessWidget {
|
|||
child: FlowySvg(
|
||||
FlowySvgs.toolbar_link_earth_m,
|
||||
color: iconScheme.secondary,
|
||||
size: Size.square(24),
|
||||
size: Size.square(30),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import 'package:appflowy/generated/locale_keys.g.dart';
|
||||
import 'package:appflowy/plugins/document/presentation/editor_plugins/link_embed/link_embed_block_component.dart';
|
||||
import 'package:appflowy/plugins/document/presentation/editor_plugins/link_preview/shared.dart';
|
||||
import 'package:appflowy/plugins/document/presentation/editor_plugins/menu/menu_extension.dart';
|
||||
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||
|
@ -69,6 +70,13 @@ class PasteAsMenuService {
|
|||
convertUrlToLinkPreview(editorState, urlSelection, href);
|
||||
} else if (t == PasteMenuType.mention) {
|
||||
convertUrlToMention(editorState, urlSelection);
|
||||
} else if (t == PasteMenuType.embed) {
|
||||
convertUrlToLinkPreview(
|
||||
editorState,
|
||||
urlSelection,
|
||||
href,
|
||||
previewType: LinkEmbedKeys.embed,
|
||||
);
|
||||
}
|
||||
dismiss();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue