Skip to content

Commit 8d0d968

Browse files
authored
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
1 parent a080cff commit 8d0d968

File tree

2 files changed

+20
-31
lines changed

2 files changed

+20
-31
lines changed

frontend/appflowy_flutter/lib/mobile/presentation/notifications/widgets/shared.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,10 +341,7 @@ class NotificationDocumentContent extends StatelessWidget {
341341
.orDefault(
342342
context.read<AppearanceSettingsCubit>().state.font,
343343
);
344-
return styleCustomizer.baseTextStyle(
345-
fontFamily,
346-
fontWeight: FontWeight.w600,
347-
);
344+
return styleCustomizer.baseTextStyle(fontFamily);
348345
},
349346
);
350347
blockBuilders[HeadingBlockKeys.type] = newHeadingBuilder;

frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/link_embed/link_embed_block_component.dart

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -189,33 +189,25 @@ class LinkEmbedBlockComponentState
189189
Widget buildContent(BuildContext context) {
190190
final theme = AppFlowyTheme.of(context), textScheme = theme.textColorScheme;
191191
final hasSiteName = linkInfo.siteName?.isNotEmpty ?? false;
192-
return Column(
193-
crossAxisAlignment: CrossAxisAlignment.start,
194-
children: [
195-
Expanded(
196-
child: GestureDetector(
197-
behavior: HitTestBehavior.opaque,
198-
onTap: !UniversalPlatform.isMobile
199-
? null
200-
: () =>
201-
afLaunchUrlString(url, addingHttpSchemeWhenFailed: true),
202-
child: ClipRRect(
203-
borderRadius:
204-
const BorderRadius.vertical(top: Radius.circular(16)),
205-
child: FlowyNetworkImage(
206-
url: linkInfo.imageUrl ?? '',
207-
width: MediaQuery.of(context).size.width,
192+
return MouseRegion(
193+
cursor: SystemMouseCursors.click,
194+
child: GestureDetector(
195+
behavior: HitTestBehavior.opaque,
196+
onTap: () => afLaunchUrlString(url, addingHttpSchemeWhenFailed: true),
197+
child: Column(
198+
crossAxisAlignment: CrossAxisAlignment.start,
199+
children: [
200+
Expanded(
201+
child: ClipRRect(
202+
borderRadius:
203+
const BorderRadius.vertical(top: Radius.circular(16)),
204+
child: FlowyNetworkImage(
205+
url: linkInfo.imageUrl ?? '',
206+
width: MediaQuery.of(context).size.width,
207+
),
208208
),
209209
),
210-
),
211-
),
212-
MouseRegion(
213-
cursor: SystemMouseCursors.click,
214-
child: GestureDetector(
215-
behavior: HitTestBehavior.opaque,
216-
onTap: () =>
217-
afLaunchUrlString(url, addingHttpSchemeWhenFailed: true),
218-
child: Container(
210+
Container(
219211
height: 64,
220212
padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 20),
221213
child: Row(
@@ -256,9 +248,9 @@ class LinkEmbedBlockComponentState
256248
],
257249
),
258250
),
259-
),
251+
],
260252
),
261-
],
253+
),
262254
);
263255
}
264256

0 commit comments

Comments
 (0)