Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de16f7d

Browse files
Add headings to all informational & dialog views
1 parent 723fd44 commit de16f7d

File tree

7 files changed

+19
-2
lines changed

7 files changed

+19
-2
lines changed

lib/views/git-tab-view.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default class GitTabView extends React.Component {
9090
<div className="github-Git is-empty" tabIndex="-1" ref={this.props.refRoot.setter}>
9191
<div ref="noRepoMessage" className="github-Git too-many-changes">
9292
<div className="github-Git-LargeIcon icon icon-diff" />
93-
<h3>Too many changes</h3>
93+
<h1>Too many changes</h1>
9494
<div className="initialize-repo-description">
9595
The repository at <strong>{this.props.workingDirectoryPath}</strong> has too many changed files
9696
to display in Atom. Ensure that you have set up an appropriate <code>.gitignore</code> file.
@@ -104,7 +104,7 @@ export default class GitTabView extends React.Component {
104104
<div className="github-Git is-empty" tabIndex="-1" ref={this.props.refRoot.setter}>
105105
<div ref="noRepoMessage" className="github-Git unsupported-directory">
106106
<div className="github-Git-LargeIcon icon icon-alert" />
107-
<h3>Unsupported directory</h3>
107+
<h1>Unsupported directory</h1>
108108
<div className="initialize-repo-description">
109109
Atom does not support managing Git repositories in your home or root directories.
110110
</div>
@@ -125,6 +125,7 @@ export default class GitTabView extends React.Component {
125125
<div className="github-Git is-empty" tabIndex="-1" ref={this.props.refRoot.setter}>
126126
<div ref="noRepoMessage" className="github-Git no-repository">
127127
<div className="github-Git-LargeIcon icon icon-repo" />
128+
<h1>Create Repository</h1>
128129
<div className="initialize-repo-description">{message}</div>
129130
<button onClick={this.initializeRepo} disabled={inProgress} className="btn btn-primary">
130131
{inProgress ? 'Creating repository...' : 'Create repository'}

lib/views/github-login-view.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export default class GithubLoginView extends React.Component {
4848
return (
4949
<div className="github-GithubLoginView-Subview">
5050
<div className="github-GitHub-LargeIcon icon icon-mark-github" />
51+
<h1>Log in to GitHub</h1>
5152
{this.props.children}
5253
<button onClick={this.handleLoginClick} className="btn btn-primary icon icon-octoface">
5354
Login
@@ -60,6 +61,7 @@ export default class GithubLoginView extends React.Component {
6061
return (
6162
<form className="github-GithubLoginView-Subview" onSubmit={this.handleSubmitToken}>
6263
<div className="github-GitHub-LargeIcon icon icon-mark-github" />
64+
<h1>Enter Token</h1>
6365
<ol>
6466
<li>Visit <a href="https://github.atom.io/login">github.atom.io/login</a> to generate
6567
an authentication token.</li>

lib/views/github-tab-view.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export default class GitHubTabView extends React.Component {
8282
return (
8383
<div className="github-GitHub-noRemotes">
8484
<div className="github-GitHub-LargeIcon icon icon-mark-github" />
85+
<h1>No Remotes</h1>
8586
<div className="initialize-repo-description">
8687
<span>This repository does not have any remotes hosted at GitHub.com.</span>
8788
</div>

lib/views/remote-selector-view.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default class RemoteSelectorView extends React.Component {
1616
return (
1717
<div className="github-RemoteSelector">
1818
<div className="github-GitHub-LargeIcon icon icon-mirror" />
19+
<h1>Multiple Remotes</h1>
1920
<div className="initialize-repo-description">
2021
<span>This repository has multiple remotes hosted at GitHub.com.
2122
Select a remote to see pull requests associated

styles/git-tab.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
margin: @component-padding 0;
3535
}
3636

37+
h1 {
38+
margin-bottom: @component-padding * 3;
39+
}
40+
3741
button {
3842
overflow: hidden;
3943
text-overflow: ellipsis;

styles/github-login-view.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
margin: @component-padding 0;
1717
}
1818

19+
h1 {
20+
margin-bottom: @component-padding * 3;
21+
}
22+
1923
button {
2024
width: 100%;
2125
overflow: hidden;

styles/github-tab.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
> * {
3434
margin: @component-padding 0;
3535
}
36+
37+
h1 {
38+
margin-bottom: @component-padding * 3;
39+
}
3640
}
3741

3842
.github-RemoteSelector {

0 commit comments

Comments
 (0)