Skip to content

Commit

Permalink
fix #1229 [UI] Fix new ssh/new tab menu name
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdong262 committed Apr 16, 2019
1 parent 3d9c1cb commit 8996ed5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "electerm",
"version": "0.27.8",
"version": "0.27.9",
"description": "Terminal/ssh/sftp client(linux, mac, win) based on electron/ssh2/node-pty/xterm/antd and other libs",
"main": "dev-app.js",
"bin": "npm/electerm",
Expand Down
1 change: 1 addition & 0 deletions src/client/components/main/system-menu.jsx
Expand Up @@ -200,6 +200,7 @@ export default (props) => {
<Context
content={renderContext(props)}
visible={props.menuOpened}
className="context-menu system-menu"
closeContextMenu={props.closeMenu}
pos={{
left: 40,
Expand Down
3 changes: 2 additions & 1 deletion src/client/components/main/system-menu.styl
@@ -1,4 +1,5 @@

.system-menu
width 200px
.context-menu
hr
margin 0
Expand Down
4 changes: 2 additions & 2 deletions src/client/components/tabs/index.jsx
Expand Up @@ -140,13 +140,13 @@ export default class Tabs extends React.Component {
<div className="add-menu-wrap">
<div
className={cls}
onClick={() => addTab()}
onClick={onNewSsh}
>
<Icon type="code" theme="filled" /> {c('newSsh')}
</div>
<div
className={cls}
onClick={onNewSsh}
onClick={() => addTab()}
>
<Icon type="right-square" theme="filled" /> {t('newTab')}
</div>
Expand Down

0 comments on commit 8996ed5

Please sign in to comment.