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( .orDefault(
context.read<AppearanceSettingsCubit>().state.font, context.read<AppearanceSettingsCubit>().state.font,
); );
return styleCustomizer.baseTextStyle( return styleCustomizer.baseTextStyle(fontFamily);
fontFamily,
fontWeight: FontWeight.w600,
);
}, },
); );
blockBuilders[HeadingBlockKeys.type] = newHeadingBuilder; blockBuilders[HeadingBlockKeys.type] = newHeadingBuilder;

View File

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