@electerm/electerm-react 1.37.106 → 1.37.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,7 +29,7 @@ const c = prefix('common')
|
|
|
29
29
|
export default class Upgrade extends PureComponent {
|
|
30
30
|
state = {
|
|
31
31
|
showCount: 0,
|
|
32
|
-
mirror: mirrors
|
|
32
|
+
mirror: mirrors['download-electerm']
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
downloadTimer = null
|
|
@@ -114,7 +114,7 @@ export default class Upgrade extends PureComponent {
|
|
|
114
114
|
timeout = () => {
|
|
115
115
|
const { mirror } = this.state
|
|
116
116
|
this.cancel()
|
|
117
|
-
const next = mirror
|
|
117
|
+
const next = mirror !== mirrors.sourceforge
|
|
118
118
|
? this.doUpgrade
|
|
119
119
|
: undefined
|
|
120
120
|
const nextMirror = mirror === mirrors.github
|
|
@@ -305,6 +305,12 @@ export default class SessionWrapper extends Component {
|
|
|
305
305
|
return width - rt - lt - 42
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
+
getWidthSftp = () => {
|
|
309
|
+
const { width, leftSidebarWidth, pinned, openedSideBar } = this.props
|
|
310
|
+
const lt = pinned && openedSideBar ? leftSidebarWidth : 0
|
|
311
|
+
return width - lt - 42
|
|
312
|
+
}
|
|
313
|
+
|
|
308
314
|
renderTerminals = () => {
|
|
309
315
|
const {
|
|
310
316
|
terminals,
|
|
@@ -401,7 +407,8 @@ export default class SessionWrapper extends Component {
|
|
|
401
407
|
height,
|
|
402
408
|
sessionId,
|
|
403
409
|
pane,
|
|
404
|
-
...this.props
|
|
410
|
+
...this.props,
|
|
411
|
+
width: this.getWidthSftp()
|
|
405
412
|
}
|
|
406
413
|
return (
|
|
407
414
|
<div className={cls}>
|