@electerm/electerm-react 3.15.171 → 3.15.175
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.
|
@@ -25,7 +25,7 @@ export default function NoSessionPanel ({ height, onNewTab, onNewSsh, batch }) {
|
|
|
25
25
|
? (
|
|
26
26
|
<Button
|
|
27
27
|
onClick={onNewTab}
|
|
28
|
-
className='
|
|
28
|
+
className='add-new-tab-btn'
|
|
29
29
|
>
|
|
30
30
|
{e('newTab')}
|
|
31
31
|
</Button>
|
|
@@ -33,17 +33,15 @@ export default function NoSessionPanel ({ height, onNewTab, onNewSsh, batch }) {
|
|
|
33
33
|
: null
|
|
34
34
|
return (
|
|
35
35
|
<div className='no-sessions electerm-logo-bg' {...props}>
|
|
36
|
-
<div className='
|
|
36
|
+
<div className='no-session-btns'>
|
|
37
37
|
{newTabDom}
|
|
38
38
|
<Button
|
|
39
39
|
onClick={onNewSsh}
|
|
40
|
-
className='mg1r mg1b'
|
|
41
40
|
>
|
|
42
41
|
{e('newBookmark')}
|
|
43
42
|
</Button>
|
|
44
43
|
<Button
|
|
45
44
|
onClick={handleCreateAIBookmark}
|
|
46
|
-
className='mg1r mg1b'
|
|
47
45
|
icon={<RobotOutlined />}
|
|
48
46
|
>
|
|
49
47
|
{e('createBookmarkByAI')}
|
package/client/css/mobile.styl
CHANGED
|
@@ -152,3 +152,22 @@
|
|
|
152
152
|
display none
|
|
153
153
|
.type-tab-short
|
|
154
154
|
display inline
|
|
155
|
+
|
|
156
|
+
// ---------------------------------------------------------------------------
|
|
157
|
+
// Touch-primary devices only (feature-detected via pointer media query, not
|
|
158
|
+
// UA sniffing or viewport width). iOS Safari and Android Chrome auto-zoom the
|
|
159
|
+
// page when focusing an input with font-size < 16px, and never zoom back out
|
|
160
|
+
// on blur, leaving the page stuck zoomed. Desktop browsers (even with
|
|
161
|
+
// touchscreens or narrow windows) report pointer: fine and never force-zoom,
|
|
162
|
+
// so this never matches them. Force 16px on all focusable form fields (antd
|
|
163
|
+
// inputs default to 14px) to prevent the zoom.
|
|
164
|
+
// ---------------------------------------------------------------------------
|
|
165
|
+
@media (pointer: coarse)
|
|
166
|
+
input,
|
|
167
|
+
textarea,
|
|
168
|
+
select,
|
|
169
|
+
.ant-input,
|
|
170
|
+
.ant-input-affix-wrapper .ant-input,
|
|
171
|
+
.ant-input-number-input,
|
|
172
|
+
.ant-select-selection-search-input
|
|
173
|
+
font-size 16px !important
|