Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: optimzie emoji align on desktop (#5857)

Lucas.Xu04556252e165
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_icon.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_icon.dart
index 491e1c42cf..2b8a798ffa 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_icon.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/sidebar/workspace/_sidebar_workspace_icon.dart
@@ -45,6 +45,7 @@ class _WorkspaceIconState extends State<WorkspaceIcon> {
child: FlowyText.emoji(
widget.workspace.icon,
fontSize: widget.emojiSize ?? widget.iconSize,
+ figmaLineHeight: 21.0,
),
)
: Container(
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart
index aab249d0f8..ba57046f11 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_item.dart
@@ -491,7 +491,8 @@ class _SingleInnerViewItemState extends State<SingleInnerViewItem> {
final name = FlowyText.regular(
widget.view.name,
overflow: TextOverflow.ellipsis,
- // figmaLineHeight: 18.0,
+ fontSize: 14.0,
+ figmaLineHeight: 18.0,
);
final children = [
const HSpace(2),
@@ -573,6 +574,7 @@ class _SingleInnerViewItemState extends State<SingleInnerViewItem> {
? FlowyText.emoji(
widget.view.icon.value,
fontSize: 16.0,
+ figmaLineHeight: 21.0,
)
: Opacity(opacity: 0.6, child: widget.view.defaultIcon());
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/view_title_bar.dart b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/view_title_bar.dart
index 70fee32a10..38bee0bc2f 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/widgets/view_title_bar.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/widgets/view_title_bar.dart
@@ -230,6 +230,7 @@ class _ViewTitleState extends State<_ViewTitle> {
FlowyText.emoji(
state.icon,
fontSize: 14.0,
+ figmaLineHeight: 18.0,
),
const HSpace(4.0),
],
@@ -248,6 +249,7 @@ class _ViewTitleState extends State<_ViewTitle> {
state.name,
fontSize: 14.0,
overflow: TextOverflow.ellipsis,
+ figmaLineHeight: 18.0,
),
),
],