From d4454f43a21865e785608d31da6ff4c767bfc2a1 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Thu, 2 Apr 2020 12:13:02 +0200 Subject: [PATCH 1/5] Fix action item padding --- shared/src/actions/ActionsNavItems.tsx | 2 +- web/src/components/Breadcrumb.scss | 1 + web/src/repo/RepoHeader.scss | 20 ++++++++++++-------- web/src/repo/RepoHeader.tsx | 2 +- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/shared/src/actions/ActionsNavItems.tsx b/shared/src/actions/ActionsNavItems.tsx index 7b5b3f92f5ff..c65288c95d74 100644 --- a/shared/src/actions/ActionsNavItems.tsx +++ b/shared/src/actions/ActionsNavItems.tsx @@ -88,7 +88,7 @@ export class ActionsNavItems extends React.PureComponent ( + const actionItems = getContributedActionItems(this.state.contributions, this.props.menu).map(item => ( {' '}
  • diff --git a/web/src/components/Breadcrumb.scss b/web/src/components/Breadcrumb.scss index a2f2b3708909..fbfe8c393ea3 100644 --- a/web/src/components/Breadcrumb.scss +++ b/web/src/components/Breadcrumb.scss @@ -1,5 +1,6 @@ .breadcrumb { display: flex; + align-items: center; .part-directory { flex: 1 1 1em; diff --git a/web/src/repo/RepoHeader.scss b/web/src/repo/RepoHeader.scss index a77e0045a7dd..39c11fdebf08 100644 --- a/web/src/repo/RepoHeader.scss +++ b/web/src/repo/RepoHeader.scss @@ -7,23 +7,27 @@ flex: none; padding-top: 0; padding-bottom: 0; + padding-right: 0; + align-items: stretch; border-style: solid; border-width: 0 0 1px; .navbar-nav { white-space: nowrap; - // Less padding above, below, and between actions. - .nav-item .nav-link { - padding: 0.425rem 0.175rem; - user-select: none; + .nav-item { + display: flex; + align-items: center; + margin-left: 0.125rem; + + .nav-link { + user-select: none; + } } } - &__repo { - &-basename { - font-weight: bold; - } + &__repo-basename { + font-weight: bold; } &__alert { diff --git a/web/src/repo/RepoHeader.tsx b/web/src/repo/RepoHeader.tsx index b89ef0e79726..ae0843a7147a 100644 --- a/web/src/repo/RepoHeader.tsx +++ b/web/src/repo/RepoHeader.tsx @@ -226,7 +226,7 @@ export class RepoHeader extends React.PureComponent { ))}
    -