From b4d307b3b431ff044295453777e5e98bd124ad87 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 14 Jan 2021 19:36:31 -0800 Subject: [PATCH] fix: Confusing breadcrumb collapsing --- app/components/Breadcrumb.js | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/app/components/Breadcrumb.js b/app/components/Breadcrumb.js index b6130a16f..b6a527588 100644 --- a/app/components/Breadcrumb.js +++ b/app/components/Breadcrumb.js @@ -31,11 +31,11 @@ function Icon({ document }) { if (document.isDeleted) { return ( <> - +   {t("Trash")} - + ); @@ -43,11 +43,11 @@ function Icon({ document }) { if (document.isArchived) { return ( <> - +   {t("Archive")} - + ); @@ -55,11 +55,11 @@ function Icon({ document }) { if (document.isDraft) { return ( <> - +   {t("Drafts")} - + ); @@ -67,11 +67,11 @@ function Icon({ document }) { if (document.isTemplate) { return ( <> - +   {t("Templates")} - + ); @@ -197,4 +197,8 @@ const CollectionName = styled(Link)` } `; +const CategoryName = styled(CollectionName)` + flex-shrink: 0; +`; + export default observer(Breadcrumb);