Skip to content

Commit

Permalink
feat: add commit
Browse files Browse the repository at this point in the history
  • Loading branch information
罗学 committed May 12, 2021
1 parent 55a083a commit 3c398e0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
21 changes: 12 additions & 9 deletions packages/cli/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,18 @@ function App() {
</div>
</div>
<div className="cmd">
{
branch && <div className="title">
<span className="branch"></span>
<span className="hidden"></span>
<span>{ pwd }</span>
<span className="hidden"></span>
<span className="git">git:(<span className="branch">{ branch }</span>)</span>
</div>
}
<div className="title">
<button className="extsh">退回sh</button>
{
branch && <>
<span className="branch"></span>
<span className="hidden"></span>
<span>{ pwd }</span>
<span className="hidden"></span>
<span className="git">git:(<span className="branch">{ branch }</span>)</span>
</>
}
</div>
{
gotty && <iframe src={gotty}></iframe>
}
Expand Down
5 changes: 5 additions & 0 deletions packages/cli/src/App.less
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ body {
font-size: 14px;
align-items: center;
color: burlywood;

.extsh {
color: white;
margin: 0 10px;
}
}

iframe {
Expand Down

0 comments on commit 3c398e0

Please sign in to comment.