@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='mg1r mg1b add-new-tab-btn'
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='pd1b'>
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')}
@@ -8,6 +8,13 @@
8
8
  right 0
9
9
  bottom 0
10
10
  z-index 11
11
+ .no-session-btns
12
+ display flex
13
+ flex-wrap wrap
14
+ justify-content center
15
+ align-items center
16
+ gap 8px
17
+ padding-bottom 8px
11
18
  .no-session-history
12
19
  position absolute
13
20
  top 320px
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electerm/electerm-react",
3
- "version": "3.15.171",
3
+ "version": "3.15.175",
4
4
  "description": "react components src for electerm",
5
5
  "main": "./client/components/main/main.jsx",
6
6
  "license": "MIT",