mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-06-27 02:50:15 +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(
|
||||
context.read<AppearanceSettingsCubit>().state.font,
|
||||
);
|
||||
return styleCustomizer.baseTextStyle(
|
||||
fontFamily,
|
||||
fontWeight: FontWeight.w600,
|
||||
);
|
||||
return styleCustomizer.baseTextStyle(fontFamily);
|
||||
},
|
||||
);
|
||||
blockBuilders[HeadingBlockKeys.type] = newHeadingBuilder;
|
||||
|
@ -189,16 +189,15 @@ class LinkEmbedBlockComponentState
|
||||
Widget buildContent(BuildContext context) {
|
||||
final theme = AppFlowyTheme.of(context), textScheme = theme.textColorScheme;
|
||||
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,
|
||||
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)),
|
||||
@ -208,14 +207,7 @@ class LinkEmbedBlockComponentState
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
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
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user