@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.
@@ -297,6 +297,7 @@ export const rendererTypes = {
297
297
  webGL: 'webGL'
298
298
  }
299
299
  export const mirrors = {
300
+ 'download-electerm': 'download-electerm',
300
301
  github: 'github',
301
302
  sourceforge: 'sourceforge'
302
303
  }
@@ -1,4 +1,8 @@
1
1
  export default [
2
+ {
3
+ name: 'homepage',
4
+ url: 'https://electerm.html5beta.com'
5
+ },
2
6
  {
3
7
  name: 'github',
4
8
  url: 'https://github.com/electerm/electerm/releases'
@@ -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.github
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 === mirrors.github
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}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "1.37.106",
3
+ "version": "1.37.110",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",