From 03fe9859152ef2bc51a730fd1c45945c3ed45f64 Mon Sep 17 00:00:00 2001 From: Kyle Doherty <kyle.l.doherty@gmail.com> Date: Mon, 2 Jul 2018 07:52:04 -0700 Subject: [PATCH] pinned items spacing --- frontend/src/metabase/components/CollectionLanding.jsx | 2 +- frontend/src/metabase/nav/components/ProfileLink.jsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/metabase/components/CollectionLanding.jsx b/frontend/src/metabase/components/CollectionLanding.jsx index 6d6f87235b3..4a0cf3aa149 100644 --- a/frontend/src/metabase/components/CollectionLanding.jsx +++ b/frontend/src/metabase/components/CollectionLanding.jsx @@ -104,7 +104,7 @@ class DefaultLanding extends React.Component { <Box> <Box> {pinned.length > 0 ? ( - <Box mx={4} mt={2} mb={4}> + <Box mx={4} mt={2} mb={3}> <CollectionSectionHeading>{t`Pins`}</CollectionSectionHeading> <PinDropTarget pinIndex={pinned[pinned.length - 1].collection_position + 1} diff --git a/frontend/src/metabase/nav/components/ProfileLink.jsx b/frontend/src/metabase/nav/components/ProfileLink.jsx index 8979754f257..f10e6711cbb 100644 --- a/frontend/src/metabase/nav/components/ProfileLink.jsx +++ b/frontend/src/metabase/nav/components/ProfileLink.jsx @@ -68,16 +68,16 @@ export default class ProfileLink extends Component { icon: null, link: Urls.accountSettings(), }, - ...(!isRoot && { + { title: admin ? t`Exit admin` : t`Admin`, icon: null, link: admin ? "/" : "/admin", - }), - ...(!isRoot && { + }, + { title: t`Logs`, icon: null, action: () => this.openModal("logs"), - }), + }, { title: t`About metabase`, icon: null, -- GitLab