From 9dcb04b58a6789c14ce5c432ffe2c28ab6d281df Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 1 Jul 2024 11:04:00 -0400 Subject: [PATCH] fix: Empty space where logo should be on shared docs with no branding fix: Not using emoji fallback on shared links --- app/components/Sidebar/Shared.tsx | 2 +- app/components/Sidebar/components/SharedDocumentLink.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/components/Sidebar/Shared.tsx b/app/components/Sidebar/Shared.tsx index faa63a4af..129cd3060 100644 --- a/app/components/Sidebar/Shared.tsx +++ b/app/components/Sidebar/Shared.tsx @@ -29,7 +29,7 @@ function SharedSidebar({ rootNode, shareId }: Props) { return ( - {team && ( + {team?.name && ( } diff --git a/app/components/Sidebar/components/SharedDocumentLink.tsx b/app/components/Sidebar/components/SharedDocumentLink.tsx index ff1adceb1..9c1e70e03 100644 --- a/app/components/Sidebar/components/SharedDocumentLink.tsx +++ b/app/components/Sidebar/components/SharedDocumentLink.tsx @@ -101,6 +101,8 @@ function DocumentLink( (activeDocument?.id === node.id ? activeDocument.title : node.title) || t("Untitled"); + const icon = node.icon ?? node.emoji; + return ( <> } + icon={icon && } label={title} depth={depth} exact={false}