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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: make the link align center while sitename is empty (#7955)
Mornffef4a4e3b6c
diff --git a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_embed/link_embed_block_component.dart b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_embed/link_embed_block_component.dartindex de3ea33453..6424aefb16 100644--- a/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_embed/link_embed_block_component.dart+++ b/frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_embed/link_embed_block_component.dart@@ -188,6 +188,7 @@ class LinkEmbedBlockComponentStateWidget buildContent(BuildContext context) {final theme = AppFlowyTheme.of(context), textScheme = theme.textColorScheme;+ final hasSiteName = linkInfo.siteName?.isNotEmpty ?? false;return Column(crossAxisAlignment: CrossAxisAlignment.start,children: [@@ -231,15 +232,17 @@ class LinkEmbedBlockComponentStatecrossAxisAlignment: CrossAxisAlignment.start,mainAxisSize: MainAxisSize.min,children: [- FlowyText(- linkInfo.siteName ?? '',- color: textScheme.primary,- fontSize: 14,- figmaLineHeight: 20,- fontWeight: FontWeight.w600,- overflow: TextOverflow.ellipsis,- ),- VSpace(4),+ if (hasSiteName) ...[+ FlowyText(+ linkInfo.siteName ?? '',+ color: textScheme.primary,+ fontSize: 14,+ figmaLineHeight: 20,+ fontWeight: FontWeight.w600,+ overflow: TextOverflow.ellipsis,+ ),+ VSpace(4),+ ],FlowyText.regular(url,color: textScheme.secondary,