style: code format

This commit is contained in:
EnixCoda 2018-05-28 23:40:51 +08:00
parent b848093e1e
commit 2c6de05b17
2 changed files with 10 additions and 7 deletions

View file

@ -104,8 +104,8 @@ export default class SideBar extends preact.Component {
<div className={'description'}>
<h5>Access Denied</h5>
<p>
Gitako needs access token with proper scopes (recommended: repo) to access this repository.
Please save it in the settings below.
Gitako needs access token with proper scopes (recommended: repo) to access this
repository. Please save it in the settings below.
</p>
</div>
)
@ -117,7 +117,10 @@ export default class SideBar extends preact.Component {
<div className={'gitako-side-bar-content'}>
{metaData && <MetaBar metaData={metaData} />}
{errorDueToAuth && this.renderAccessDeniedError()}
{metaData && treeData && <FileExplorer metaData={metaData} treeData={treeData} freeze={showSettings} />}
{metaData &&
treeData && (
<FileExplorer metaData={metaData} treeData={treeData} freeze={showSettings} />
)}
</div>
)
}

View file

@ -41,18 +41,18 @@
width: 100%;
height: 100%;
display: block;
background-image: url("./assets/icons/octicons/clippy.svg?inline");
background-image: url('./assets/icons/octicons/clippy.svg?inline');
background-position: center;
background-repeat: no-repeat;
}
&.success {
.icon {
background-image: url("./assets/icons/octicons/check.svg?inline");
background-image: url('./assets/icons/octicons/check.svg?inline');
}
}
&.fail {
.icon {
background-image: url("./assets/icons/octicons/x.svg?inline");
background-image: url('./assets/icons/octicons/x.svg?inline');
}
}
}
@ -68,7 +68,7 @@
}
.@{name}-toggle-show-button-wrapper {
@animation-duration: .8s;
@animation-duration: 0.8s;
position: fixed;
top: 5px;
left: 0;