@electerm/electerm-react 3.15.69 → 3.15.76
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.
|
@@ -57,9 +57,18 @@
|
|
|
57
57
|
&.session-batch-active
|
|
58
58
|
display block
|
|
59
59
|
|
|
60
|
+
.term-sftp-box
|
|
61
|
+
height 100%
|
|
60
62
|
.web-session-wrap
|
|
61
|
-
height
|
|
63
|
+
height 100%
|
|
62
64
|
background var(--main)
|
|
65
|
+
overflow hidden
|
|
66
|
+
display flex
|
|
67
|
+
flex-direction column
|
|
68
|
+
.web-session-content
|
|
69
|
+
flex 1
|
|
70
|
+
min-height 0
|
|
71
|
+
overflow hidden
|
|
63
72
|
.session-v-info
|
|
64
73
|
line-height 30px
|
|
65
74
|
.vnc-scroll-wrapper
|
|
@@ -5,8 +5,6 @@ import React, { useState, useRef, useEffect, useCallback } from 'react'
|
|
|
5
5
|
export default function WebSession (props) {
|
|
6
6
|
const {
|
|
7
7
|
tab,
|
|
8
|
-
width,
|
|
9
|
-
height,
|
|
10
8
|
reloadTab
|
|
11
9
|
} = props
|
|
12
10
|
const [zoom, setZoom] = useState(1.0)
|
|
@@ -104,13 +102,13 @@ export default function WebSession (props) {
|
|
|
104
102
|
</div>
|
|
105
103
|
)
|
|
106
104
|
}
|
|
107
|
-
const hOffset = tab.hideAddressBar ? 30 : -12
|
|
108
105
|
if (window.et.isWebApp) {
|
|
109
106
|
const iframeProps = {
|
|
110
107
|
src: url,
|
|
111
108
|
style: {
|
|
112
|
-
width:
|
|
113
|
-
height:
|
|
109
|
+
width: '100%',
|
|
110
|
+
height: '100%',
|
|
111
|
+
border: 'none'
|
|
114
112
|
}
|
|
115
113
|
}
|
|
116
114
|
return (
|
|
@@ -120,8 +118,8 @@ export default function WebSession (props) {
|
|
|
120
118
|
const viewProps = {
|
|
121
119
|
src: url,
|
|
122
120
|
style: {
|
|
123
|
-
width:
|
|
124
|
-
height:
|
|
121
|
+
width: '100%',
|
|
122
|
+
height: '100%',
|
|
125
123
|
background: '#fff'
|
|
126
124
|
},
|
|
127
125
|
disableblinkfeatures: 'true',
|
|
@@ -139,7 +137,7 @@ export default function WebSession (props) {
|
|
|
139
137
|
{!tab.hideAddressBar && (
|
|
140
138
|
<AddressBar {...addrProps} />
|
|
141
139
|
)}
|
|
142
|
-
<div className='
|
|
140
|
+
<div className='web-session-content'>
|
|
143
141
|
{renderView()}
|
|
144
142
|
</div>
|
|
145
143
|
<WebAuthModal
|