diff --git a/app/components/Sidebar/components/DocumentLink.tsx b/app/components/Sidebar/components/DocumentLink.tsx
index 647d80439b..108e1d6742 100644
--- a/app/components/Sidebar/components/DocumentLink.tsx
+++ b/app/components/Sidebar/components/DocumentLink.tsx
@@ -182,9 +182,11 @@ function InnerDocumentLink(
const can = policies.abilities(node.id);
const icon = document?.icon || node.icon || node.emoji;
const color = document?.color || node.color;
+ const initial = (document?.title || node.title).slice(0, 1).toUpperCase();
const iconElement = React.useMemo(
- () => (icon ? : undefined),
+ () =>
+ icon ? : undefined,
[icon, color]
);
diff --git a/app/scenes/Document/components/DocumentTitle.tsx b/app/scenes/Document/components/DocumentTitle.tsx
index a36a61cb52..511dc17b5d 100644
--- a/app/scenes/Document/components/DocumentTitle.tsx
+++ b/app/scenes/Document/components/DocumentTitle.tsx
@@ -230,7 +230,7 @@ const DocumentTitle = React.forwardRef(function _DocumentTitle(
);
const dir = ref.current?.getComputedDirection();
-
+ const initial = title.slice(0, 1).toUpperCase();
const fallbackIcon = icon ? (
) : null;
@@ -258,6 +258,7 @@ const DocumentTitle = React.forwardRef(function _DocumentTitle(