mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-07-24 17:42:16 +00:00
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:
parent
a080cffc1d
commit
8d0d968e9b
@ -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;
|
||||||
|
@ -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
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user