fix: remove bold style of head mention node in notification center (#8034)

* fix: allow the whole embed link clickable

* fix: remove bold style of head mention node in notification center
This commit is contained in:
Morn 2025-06-09 12:55:22 +08:00 committed by GitHub
parent a080cffc1d
commit 8d0d968e9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 31 deletions

View File

@ -341,10 +341,7 @@ class NotificationDocumentContent extends StatelessWidget {
.orDefault(
context.read<AppearanceSettingsCubit>().state.font,
);
return styleCustomizer.baseTextStyle(
fontFamily,
fontWeight: FontWeight.w600,
);
return styleCustomizer.baseTextStyle(fontFamily);
},
);
blockBuilders[HeadingBlockKeys.type] = newHeadingBuilder;

View File

@ -189,33 +189,25 @@ class LinkEmbedBlockComponentState
Widget buildContent(BuildContext context) {
final theme = AppFlowyTheme.of(context), textScheme = theme.textColorScheme;
final hasSiteName = linkInfo.siteName?.isNotEmpty ?? false;
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: !UniversalPlatform.isMobile
? null
: () =>
afLaunchUrlString(url, addingHttpSchemeWhenFailed: true),
child: ClipRRect(
borderRadius:
const BorderRadius.vertical(top: Radius.circular(16)),
child: FlowyNetworkImage(
url: linkInfo.imageUrl ?? '',
width: MediaQuery.of(context).size.width,
return MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () => afLaunchUrlString(url, addingHttpSchemeWhenFailed: true),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: ClipRRect(
borderRadius:
const BorderRadius.vertical(top: Radius.circular(16)),
child: FlowyNetworkImage(
url: linkInfo.imageUrl ?? '',
width: MediaQuery.of(context).size.width,
),
),
),
),
),
MouseRegion(
cursor: SystemMouseCursors.click,
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () =>
afLaunchUrlString(url, addingHttpSchemeWhenFailed: true),
child: Container(
Container(
height: 64,
padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 20),
child: Row(
@ -256,9 +248,9 @@ class LinkEmbedBlockComponentState
],
),
),
),
],
),
],
),
);
}