diff --git a/lib/views/github-tab-view.js b/lib/views/github-tab-view.js index cef66f9779..5417345ad9 100644 --- a/lib/views/github-tab-view.js +++ b/lib/views/github-tab-view.js @@ -81,7 +81,10 @@ export default class GitHubTabView extends React.Component { // TODO: display a view that lets you create a repository on GitHub return (
- This repository does not have any remotes hosted at GitHub.com. +
+
+ This repository does not have any remotes hosted at GitHub.com. +
); } diff --git a/lib/views/remote-selector-view.js b/lib/views/remote-selector-view.js index 920b47620b..9dd3624372 100644 --- a/lib/views/remote-selector-view.js +++ b/lib/views/remote-selector-view.js @@ -15,11 +15,14 @@ export default class RemoteSelectorView extends React.Component { // todo: ask Ash how to test this before merging. return (
-

- This repository has multiple remotes hosted at GitHub.com. +

+ +
+ This repository has multiple remotes hosted at GitHub.com. Select a remote to see pull requests associated - with the {currentBranch.getName()} branch. -

+ with the {currentBranch.getName()} branch:
+
+
    {Array.from(remotes, remote => (
  • diff --git a/styles/github-tab.less b/styles/github-tab.less index ec97e6b05c..d837b1fb1b 100644 --- a/styles/github-tab.less +++ b/styles/github-tab.less @@ -1,3 +1,5 @@ +@import "variables"; + .github-StubItem-github, .github-GitHub-root { flex: 1; @@ -9,6 +11,8 @@ min-width: 0; display: flex; flex-direction: column; + -webkit-user-select: none; + cursor: default; &-content { flex: 1; @@ -16,26 +20,40 @@ flex-direction: column; } - &-noRemotes { - margin: 10px; - font-size: @font-size * 1.25; - } - + &-noRemotes, .github-RemoteSelector { - font-size: @font-size * 1.25; + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + font-size: 1.25em; + text-align: center; + padding: @component-padding * 3; - p { - text-align: center; - margin: 10px; + > * { + margin: @component-padding 0; } + } + .github-RemoteSelector { ul { list-style: none; - padding-left: 1em; + padding-left: 0; } button { + width: 100%; margin-bottom: 10px; + overflow: hidden; + text-overflow: ellipsis; } } + + &-largeGitHubLogo:before { + margin-right: 0; + width: auto; + height: auto; + font-size: 6em; + color: mix(@base-background-color, @text-color, 66%); // 2/3 of bg color + } }