@douyinfe/semi-foundation 2.97.0 → 2.99.0

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.
Files changed (180) hide show
  1. package/cascader/foundation.ts +3 -1
  2. package/codeHighlight/codeHighlight.scss +1 -1
  3. package/datePicker/foundation.ts +7 -0
  4. package/datePicker/inputFoundation.ts +5 -0
  5. package/form/foundation.ts +50 -4
  6. package/inputNumber/foundation.ts +119 -3
  7. package/jsonViewer/jsonViewer.scss +2 -2
  8. package/lib/cjs/aiChatInput/aiChatInput.css +7 -7
  9. package/lib/cjs/anchor/anchor.css +3 -3
  10. package/lib/cjs/autoComplete/autoComplete.css +1 -1
  11. package/lib/cjs/avatar/avatar.css +5 -5
  12. package/lib/cjs/badge/badge.css +1 -1
  13. package/lib/cjs/breadcrumb/breadcrumb.css +2 -2
  14. package/lib/cjs/calendar/calendar.css +9 -9
  15. package/lib/cjs/cascader/cascader.css +6 -6
  16. package/lib/cjs/cascader/foundation.js +4 -1
  17. package/lib/cjs/checkbox/checkbox.css +2 -2
  18. package/lib/cjs/codeHighlight/codeHighlight.css +1 -1
  19. package/lib/cjs/codeHighlight/codeHighlight.scss +1 -1
  20. package/lib/cjs/collapse/collapse.css +2 -2
  21. package/lib/cjs/datePicker/datePicker.css +8 -8
  22. package/lib/cjs/datePicker/foundation.d.ts +5 -0
  23. package/lib/cjs/datePicker/foundation.js +2 -0
  24. package/lib/cjs/datePicker/inputFoundation.d.ts +5 -0
  25. package/lib/cjs/descriptions/descriptions.css +6 -6
  26. package/lib/cjs/dropdown/dropdown.css +2 -2
  27. package/lib/cjs/form/form.css +4 -4
  28. package/lib/cjs/form/foundation.js +51 -3
  29. package/lib/cjs/hotKeys/hotKeys.css +2 -2
  30. package/lib/cjs/image/image.css +2 -2
  31. package/lib/cjs/input/input.css +8 -8
  32. package/lib/cjs/input/textarea.css +2 -2
  33. package/lib/cjs/inputNumber/foundation.d.ts +15 -0
  34. package/lib/cjs/inputNumber/foundation.js +113 -3
  35. package/lib/cjs/jsonViewer/jsonViewer.css +2 -2
  36. package/lib/cjs/jsonViewer/jsonViewer.scss +2 -2
  37. package/lib/cjs/list/list.css +1 -1
  38. package/lib/cjs/modal/modal.css +1 -1
  39. package/lib/cjs/navigation/navigation.css +2 -2
  40. package/lib/cjs/notification/notification.css +4 -4
  41. package/lib/cjs/pagination/pagination.css +5 -5
  42. package/lib/cjs/popconfirm/popconfirm.css +1 -1
  43. package/lib/cjs/popover/popover.css +5 -5
  44. package/lib/cjs/radio/radio.css +2 -2
  45. package/lib/cjs/scrollList/itemFoundation.js +12 -0
  46. package/lib/cjs/scrollList/scrollList.css +2 -2
  47. package/lib/cjs/select/select.css +6 -6
  48. package/lib/cjs/sideSheet/sideSheet.css +2 -2
  49. package/lib/cjs/sidebar/sidebar.css +11 -11
  50. package/lib/cjs/slider/foundation.js +46 -12
  51. package/lib/cjs/slider/rtl.scss +62 -0
  52. package/lib/cjs/slider/slider.css +45 -0
  53. package/lib/cjs/slider/slider.scss +2 -0
  54. package/lib/cjs/steps/steps.css +11 -11
  55. package/lib/cjs/table/foundation.d.ts +36 -0
  56. package/lib/cjs/table/foundation.js +162 -28
  57. package/lib/cjs/table/rtl.scss +21 -0
  58. package/lib/cjs/table/table.css +38 -2
  59. package/lib/cjs/table/table.scss +49 -0
  60. package/lib/cjs/tabs/tabs.css +2 -2
  61. package/lib/cjs/tag/tag.css +2 -2
  62. package/lib/cjs/tagInput/tagInput.css +2 -2
  63. package/lib/cjs/timePicker/timePicker.css +1 -1
  64. package/lib/cjs/timeline/timeline.css +2 -2
  65. package/lib/cjs/toast/toast.css +1 -1
  66. package/lib/cjs/tooltip/arrow.scss +4 -4
  67. package/lib/cjs/tooltip/foundation.js +72 -5
  68. package/lib/cjs/tooltip/tooltip.css +5 -5
  69. package/lib/cjs/transfer/constants.d.ts +3 -1
  70. package/lib/cjs/transfer/constants.js +3 -1
  71. package/lib/cjs/transfer/foundation.d.ts +3 -0
  72. package/lib/cjs/transfer/foundation.js +4 -0
  73. package/lib/cjs/transfer/transfer.css +14 -5
  74. package/lib/cjs/transfer/transfer.scss +10 -0
  75. package/lib/cjs/tree/foundation.d.ts +3 -0
  76. package/lib/cjs/tree/foundation.js +31 -4
  77. package/lib/cjs/tree/tree.css +1 -1
  78. package/lib/cjs/treeSelect/foundation.d.ts +1 -0
  79. package/lib/cjs/treeSelect/foundation.js +8 -1
  80. package/lib/cjs/treeSelect/treeSelect.css +36 -4
  81. package/lib/cjs/treeSelect/treeSelect.scss +49 -1
  82. package/lib/cjs/typography/typography.css +8 -8
  83. package/lib/cjs/upload/upload.css +8 -8
  84. package/lib/cjs/utils/Store.d.ts +1 -1
  85. package/lib/cjs/utils/Store.js +1 -0
  86. package/lib/es/aiChatInput/aiChatInput.css +7 -7
  87. package/lib/es/anchor/anchor.css +3 -3
  88. package/lib/es/autoComplete/autoComplete.css +1 -1
  89. package/lib/es/avatar/avatar.css +5 -5
  90. package/lib/es/badge/badge.css +1 -1
  91. package/lib/es/breadcrumb/breadcrumb.css +2 -2
  92. package/lib/es/calendar/calendar.css +9 -9
  93. package/lib/es/cascader/cascader.css +6 -6
  94. package/lib/es/cascader/foundation.js +4 -1
  95. package/lib/es/checkbox/checkbox.css +2 -2
  96. package/lib/es/codeHighlight/codeHighlight.css +1 -1
  97. package/lib/es/codeHighlight/codeHighlight.scss +1 -1
  98. package/lib/es/collapse/collapse.css +2 -2
  99. package/lib/es/datePicker/datePicker.css +8 -8
  100. package/lib/es/datePicker/foundation.d.ts +5 -0
  101. package/lib/es/datePicker/foundation.js +2 -0
  102. package/lib/es/datePicker/inputFoundation.d.ts +5 -0
  103. package/lib/es/descriptions/descriptions.css +6 -6
  104. package/lib/es/dropdown/dropdown.css +2 -2
  105. package/lib/es/form/form.css +4 -4
  106. package/lib/es/form/foundation.js +51 -3
  107. package/lib/es/hotKeys/hotKeys.css +2 -2
  108. package/lib/es/image/image.css +2 -2
  109. package/lib/es/input/input.css +8 -8
  110. package/lib/es/input/textarea.css +2 -2
  111. package/lib/es/inputNumber/foundation.d.ts +15 -0
  112. package/lib/es/inputNumber/foundation.js +113 -3
  113. package/lib/es/jsonViewer/jsonViewer.css +2 -2
  114. package/lib/es/jsonViewer/jsonViewer.scss +2 -2
  115. package/lib/es/list/list.css +1 -1
  116. package/lib/es/modal/modal.css +1 -1
  117. package/lib/es/navigation/navigation.css +2 -2
  118. package/lib/es/notification/notification.css +4 -4
  119. package/lib/es/pagination/pagination.css +5 -5
  120. package/lib/es/popconfirm/popconfirm.css +1 -1
  121. package/lib/es/popover/popover.css +5 -5
  122. package/lib/es/radio/radio.css +2 -2
  123. package/lib/es/scrollList/itemFoundation.js +12 -0
  124. package/lib/es/scrollList/scrollList.css +2 -2
  125. package/lib/es/select/select.css +6 -6
  126. package/lib/es/sideSheet/sideSheet.css +2 -2
  127. package/lib/es/sidebar/sidebar.css +11 -11
  128. package/lib/es/slider/foundation.js +46 -12
  129. package/lib/es/slider/rtl.scss +62 -0
  130. package/lib/es/slider/slider.css +45 -0
  131. package/lib/es/slider/slider.scss +2 -0
  132. package/lib/es/steps/steps.css +11 -11
  133. package/lib/es/table/foundation.d.ts +36 -0
  134. package/lib/es/table/foundation.js +162 -28
  135. package/lib/es/table/rtl.scss +21 -0
  136. package/lib/es/table/table.css +38 -2
  137. package/lib/es/table/table.scss +49 -0
  138. package/lib/es/tabs/tabs.css +2 -2
  139. package/lib/es/tag/tag.css +2 -2
  140. package/lib/es/tagInput/tagInput.css +2 -2
  141. package/lib/es/timePicker/timePicker.css +1 -1
  142. package/lib/es/timeline/timeline.css +2 -2
  143. package/lib/es/toast/toast.css +1 -1
  144. package/lib/es/tooltip/arrow.scss +4 -4
  145. package/lib/es/tooltip/foundation.js +72 -5
  146. package/lib/es/tooltip/tooltip.css +5 -5
  147. package/lib/es/transfer/constants.d.ts +3 -1
  148. package/lib/es/transfer/constants.js +3 -1
  149. package/lib/es/transfer/foundation.d.ts +3 -0
  150. package/lib/es/transfer/foundation.js +4 -0
  151. package/lib/es/transfer/transfer.css +14 -5
  152. package/lib/es/transfer/transfer.scss +10 -0
  153. package/lib/es/tree/foundation.d.ts +3 -0
  154. package/lib/es/tree/foundation.js +31 -4
  155. package/lib/es/tree/tree.css +1 -1
  156. package/lib/es/treeSelect/foundation.d.ts +1 -0
  157. package/lib/es/treeSelect/foundation.js +8 -1
  158. package/lib/es/treeSelect/treeSelect.css +36 -4
  159. package/lib/es/treeSelect/treeSelect.scss +49 -1
  160. package/lib/es/typography/typography.css +8 -8
  161. package/lib/es/upload/upload.css +8 -8
  162. package/lib/es/utils/Store.d.ts +1 -1
  163. package/lib/es/utils/Store.js +1 -0
  164. package/package.json +19 -4
  165. package/scrollList/itemFoundation.ts +12 -0
  166. package/slider/foundation.ts +55 -15
  167. package/slider/rtl.scss +62 -0
  168. package/slider/slider.scss +2 -0
  169. package/table/foundation.ts +197 -29
  170. package/table/rtl.scss +21 -0
  171. package/table/table.scss +49 -0
  172. package/tooltip/arrow.scss +4 -4
  173. package/tooltip/foundation.ts +86 -5
  174. package/transfer/constants.ts +3 -1
  175. package/transfer/foundation.ts +8 -1
  176. package/transfer/transfer.scss +10 -0
  177. package/tree/foundation.ts +34 -5
  178. package/treeSelect/foundation.ts +10 -1
  179. package/treeSelect/treeSelect.scss +49 -1
  180. package/utils/Store.ts +2 -1
@@ -132,8 +132,18 @@ class InputNumberFoundation extends _foundation.default {
132
132
  handleInputFocus(e) {
133
133
  const value = this.getState('value');
134
134
  if (value !== '') {
135
- // let parsedStr = this.doParse(this.getState('value'));
136
- // this._adapter.setValue(Number(parsedStr));
135
+ // When scientific notation is enabled, convert to full number on focus
136
+ if (this._isScientificNotation() && !this._isCurrency()) {
137
+ const strVal = (0, _toString2.default)(value);
138
+ const isScientificStr = /e/i.test(strVal) && /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)[eE][+-]?\d+$/.test(strVal.trim());
139
+ if (isScientificStr) {
140
+ const parsedNum = this.doParse(strVal, false, false, false);
141
+ if (this.isValidNumber(parsedNum)) {
142
+ const fullNumberStr = this.doFormat(parsedNum, true, false);
143
+ this._adapter.setValue(fullNumberStr);
144
+ }
145
+ }
146
+ }
137
147
  }
138
148
  this._adapter.recordCursorPosition();
139
149
  this._adapter.setFocusing(true, null);
@@ -236,6 +246,35 @@ class InputNumberFoundation extends _foundation.default {
236
246
  }
237
247
  numHasChanged = true;
238
248
  }
249
+ // Fix issue #38: When input contains non-numeric characters (e.g., "1000CNY"),
250
+ // doParse returns NaN, but we should still apply max/min limit if a number
251
+ // can be extracted from the input or if currentNumber is out of range.
252
+ if (!this.isValidNumber(parsedNum)) {
253
+ // Try to extract a number from the input using parseFloat
254
+ // (parseFloat can extract numbers from strings like "1000CNY" -> 1000)
255
+ const extractedNum = parseFloat(currentValue);
256
+ if (!isNaN(extractedNum)) {
257
+ const limitedNum = this.fetchMinOrMax(extractedNum);
258
+ if (limitedNum !== currentNumber) {
259
+ willSetNum = limitedNum;
260
+ if (!this.isControlled()) {
261
+ currentNumber = willSetNum;
262
+ }
263
+ numHasChanged = true;
264
+ }
265
+ } else if (typeof currentNumber === 'number' && !isNaN(currentNumber)) {
266
+ // If we can't extract a number but currentNumber exists and is out of range,
267
+ // apply the max/min limit to currentNumber
268
+ const limitedNum = this.fetchMinOrMax(currentNumber);
269
+ if (limitedNum !== currentNumber) {
270
+ willSetNum = limitedNum;
271
+ if (!this.isControlled()) {
272
+ currentNumber = willSetNum;
273
+ }
274
+ numHasChanged = true;
275
+ }
276
+ }
277
+ }
239
278
  const currentFormattedNum = this.doFormat(currentNumber, true, true);
240
279
  if (currentFormattedNum !== currentValue) {
241
280
  willSetVal = currentFormattedNum;
@@ -407,7 +446,11 @@ class InputNumberFoundation extends _foundation.default {
407
446
  curNum = max;
408
447
  }
409
448
  // console.log('scale: ', scale, 'curNum: ', curNum);
410
- return this.doFormat(curNum, true, true);
449
+ // NOTE:
450
+ // In non-currency mode, `needAdjustCurrency=true` is used by blur/init formatting paths.
451
+ // Step operations often happen while focused, and should keep full-number display.
452
+ // Currency mode still needs `needAdjustCurrency=true` to format currency strings.
453
+ return this.doFormat(curNum, true, this._isCurrency());
411
454
  }
412
455
  minus(step, event) {
413
456
  const pressShift = event && event.shiftKey;
@@ -457,6 +500,52 @@ class InputNumberFoundation extends _foundation.default {
457
500
  const formatted = formatter.format(Number(formattedValue));
458
501
  return showCurrencySymbol ? formatted : formatted.replace(this._currencySymbol, '').trim();
459
502
  }
503
+ /**
504
+ * Check if scientific notation is enabled
505
+ */
506
+ _isScientificNotation() {
507
+ const {
508
+ scientificNotation
509
+ } = this.getProps();
510
+ return scientificNotation === true || typeof scientificNotation === 'object' && scientificNotation !== null;
511
+ }
512
+ /**
513
+ * Get scientific notation threshold
514
+ * @returns {number} threshold for digit count
515
+ */
516
+ _getScientificNotationThreshold() {
517
+ const {
518
+ scientificNotation
519
+ } = this.getProps();
520
+ if (typeof scientificNotation === 'object' && scientificNotation !== null) {
521
+ const t = scientificNotation.threshold;
522
+ return typeof t === 'number' && Number.isFinite(t) && t >= 1 ? t : 15;
523
+ }
524
+ return 15; // Default threshold: 15 digits
525
+ }
526
+ /**
527
+ * Convert number to scientific notation if exceeds threshold
528
+ * @param {number} num
529
+ * @returns {string}
530
+ */
531
+ _toScientificNotation(num) {
532
+ const threshold = this._getScientificNotationThreshold();
533
+ const absNum = Math.abs(num);
534
+ const numStr = String(absNum);
535
+ // Count significant digits (excluding decimal point, sign, exponent symbol and leading zeros)
536
+ // If JS already stringifies it with exponent (contains e/E), it is eligible for scientific notation display.
537
+ const hasExp = /e/i.test(numStr);
538
+ const significantDigits = numStr.replace(/[.\-+eE]/g, '').replace(/^0+/, '');
539
+ // Check if number exceeds threshold
540
+ if ((hasExp || significantDigits.length >= threshold) && absNum !== 0) {
541
+ // Prefer preserving coefficient digits up to threshold (total significant digits = fractionDigits + 1)
542
+ const fractionDigits = Math.max(0, Math.min(100, Math.floor(threshold) - 1));
543
+ const exp = num.toExponential(fractionDigits);
544
+ // Remove trailing zeros in the coefficient
545
+ return exp.replace(/(\.\d*?)0+e/, '$1e').replace(/\.e/, 'e');
546
+ }
547
+ return String(num);
548
+ }
460
549
  /**
461
550
  * format number to string
462
551
  * @param {string|number} value
@@ -482,6 +571,14 @@ class InputNumberFoundation extends _foundation.default {
482
571
  } else {
483
572
  str = (0, _toString2.default)(value);
484
573
  }
574
+ // Apply scientific notation for long numbers in blur state
575
+ // needAdjustCurrency indicates blur state (when true, we're formatting for display after blur)
576
+ if (this._isScientificNotation() && needAdjustCurrency && !this._isCurrency()) {
577
+ const numValue = typeof value === 'number' ? value : parseFloat(str);
578
+ if (!isNaN(numValue) && isFinite(numValue)) {
579
+ str = this._toScientificNotation(numValue);
580
+ }
581
+ }
485
582
  if (typeof formatter === 'function') {
486
583
  str = formatter(str);
487
584
  }
@@ -545,6 +642,19 @@ class InputNumberFoundation extends _foundation.default {
545
642
  const parsedValue = parser(value);
546
643
  value = typeof parsedValue === 'number' ? (0, _toString2.default)(parsedValue) : parsedValue;
547
644
  }
645
+ // Support scientific notation parsing (e.g., "1.23e+15", "1.23E-10", ".5e3", "1.e3")
646
+ if (typeof value === 'string' && /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)[eE][+-]?\d+$/.test(value.trim())) {
647
+ const scientificNum = parseFloat(value.trim());
648
+ if (!isNaN(scientificNum)) {
649
+ if (needAdjustMaxMin) {
650
+ return this.fetchMinOrMax(scientificNum);
651
+ }
652
+ if (needAdjustPrec) {
653
+ return (0, _toNumber2.default)(this._adjustPrec(scientificNum));
654
+ }
655
+ return scientificNum;
656
+ }
657
+ }
548
658
  if (needCheckPrec && typeof value === 'string') {
549
659
  const zeroIsValid = value.indexOf('.') === -1 || value.indexOf('.') > -1 && (value === '0' || value.lastIndexOf('0') < value.length - 1);
550
660
  const dotIsValid = value.lastIndexOf('.') < value.length - 1 && value.split('').filter(v => v === '.').length < 2;
@@ -53,7 +53,7 @@
53
53
  color: rgba(var(--semi-blue-7), 1);
54
54
  }
55
55
  .semi-json-viewer-view-line {
56
- font-family: Menlo, Firecode, Monaco, "Courier New", monospace;
56
+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, "Fira Code", Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
57
57
  font-weight: normal;
58
58
  font-size: 12px;
59
59
  font-feature-settings: "liga" 0, "calt" 0;
@@ -64,7 +64,7 @@
64
64
  white-space: pre-wrap !important;
65
65
  }
66
66
  .semi-json-viewer-line-number {
67
- font-family: Menlo, Firecode, Monaco, "Courier New", monospace;
67
+ font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, "Fira Code", Consolas, "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;
68
68
  font-weight: normal;
69
69
  font-size: 12px;
70
70
  font-feature-settings: "liga" 0, "calt" 0;
@@ -64,7 +64,7 @@ $module: #{$prefix}-json-viewer;
64
64
  }
65
65
 
66
66
  &-view-line {
67
- font-family: Menlo, Firecode, Monaco, 'Courier New', monospace;
67
+ font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, 'Fira Code', Consolas, 'Liberation Mono', 'DejaVu Sans Mono', 'Courier New', monospace;
68
68
  font-weight: normal;
69
69
  font-size: 12px;
70
70
  font-feature-settings: 'liga' 0, 'calt' 0;
@@ -76,7 +76,7 @@ $module: #{$prefix}-json-viewer;
76
76
  }
77
77
 
78
78
  &-line-number {
79
- font-family: Menlo, Firecode, Monaco, 'Courier New', monospace;
79
+ font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, 'Fira Code', Consolas, 'Liberation Mono', 'DejaVu Sans Mono', 'Courier New', monospace;
80
80
  font-weight: normal;
81
81
  font-size: 12px;
82
82
  font-feature-settings: 'liga' 0, 'calt' 0;
@@ -4,7 +4,7 @@
4
4
  .semi-list {
5
5
  font-size: 14px;
6
6
  line-height: 20px;
7
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
7
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
8
8
  }
9
9
  .semi-list-items {
10
10
  margin: 0;
@@ -4,7 +4,7 @@
4
4
  .semi-modal {
5
5
  font-size: 14px;
6
6
  line-height: 20px;
7
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
7
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
8
8
  position: relative;
9
9
  margin: 80px auto;
10
10
  color: var(--semi-color-text-0);
@@ -64,7 +64,7 @@
64
64
  margin-bottom: 8px;
65
65
  font-size: 14px;
66
66
  line-height: 20px;
67
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
67
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
68
68
  font-weight: 400;
69
69
  color: var(--semi-color-text-0);
70
70
  width: 100%;
@@ -358,7 +358,7 @@
358
358
  .semi-navigation-header-text {
359
359
  font-size: 18px;
360
360
  line-height: 24px;
361
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
361
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
362
362
  font-weight: 600;
363
363
  display: inline-flex;
364
364
  color: var(--semi-color-text-0);
@@ -59,7 +59,7 @@
59
59
  width: 24px;
60
60
  font-size: 16px;
61
61
  line-height: 22px;
62
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
62
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
63
63
  display: flex;
64
64
  align-items: flex-start;
65
65
  justify-content: flex-start;
@@ -101,7 +101,7 @@
101
101
  .semi-notification-notice-title {
102
102
  font-size: 16px;
103
103
  line-height: 22px;
104
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
104
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
105
105
  font-weight: 600;
106
106
  color: var(--semi-color-text-0);
107
107
  margin-bottom: 4px;
@@ -121,7 +121,7 @@
121
121
  .semi-notification-notice-content {
122
122
  font-size: 14px;
123
123
  line-height: 20px;
124
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
124
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
125
125
  font-weight: 400;
126
126
  color: var(--semi-color-text-1);
127
127
  word-wrap: break-word;
@@ -137,7 +137,7 @@
137
137
  display: flex;
138
138
  font-size: 14px;
139
139
  line-height: 20px;
140
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
140
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
141
141
  cursor: pointer;
142
142
  }
143
143
  .semi-notification-notice-detail {
@@ -6,14 +6,14 @@
6
6
  list-style: none;
7
7
  padding: 0;
8
8
  align-items: center;
9
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
9
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
10
10
  margin-block-start: 0;
11
11
  margin-block-end: 0;
12
12
  }
13
13
  .semi-page-small {
14
14
  font-size: 14px;
15
15
  line-height: 20px;
16
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
16
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
17
17
  font-weight: 400;
18
18
  color: var(--semi-color-text-2);
19
19
  padding: 0 0;
@@ -27,7 +27,7 @@
27
27
  .semi-page-item {
28
28
  font-size: 14px;
29
29
  line-height: 20px;
30
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
30
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
31
31
  min-width: 32px;
32
32
  border: 0px solid transparent;
33
33
  cursor: pointer;
@@ -104,7 +104,7 @@
104
104
  .semi-page-total {
105
105
  font-size: 14px;
106
106
  line-height: 20px;
107
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
107
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
108
108
  color: var(--semi-color-text-2);
109
109
  }
110
110
  .semi-page-prev, .semi-page-next {
@@ -119,7 +119,7 @@
119
119
  margin-left: 24px;
120
120
  font-size: 14px;
121
121
  line-height: 20px;
122
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
122
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
123
123
  display: flex;
124
124
  justify-content: center;
125
125
  align-items: center;
@@ -18,7 +18,7 @@
18
18
  .semi-popconfirm-header-title {
19
19
  font-size: 16px;
20
20
  line-height: 22px;
21
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
21
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
22
22
  font-weight: 600;
23
23
  margin-bottom: 8px;
24
24
  color: var(--semi-color-text-0);
@@ -31,7 +31,7 @@
31
31
  border-radius: var(--semi-border-radius-medium);
32
32
  font-size: 14px;
33
33
  line-height: 20px;
34
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
34
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
35
35
  opacity: 0;
36
36
  }
37
37
  .semi-popover-wrapper-show {
@@ -76,7 +76,7 @@
76
76
  color: unset;
77
77
  }
78
78
  .semi-popover-wrapper[x-placement=top] .semi-popover-icon-arrow {
79
- left: 50%;
79
+ left: var(--semi-tooltip-arrow-offset-x, 50%);
80
80
  transform: translateX(-50%);
81
81
  bottom: -7px;
82
82
  }
@@ -114,7 +114,7 @@
114
114
  width: 8px;
115
115
  height: 24px;
116
116
  right: -7px;
117
- top: 50%;
117
+ top: var(--semi-tooltip-arrow-offset-y, 50%);
118
118
  transform: translateY(-50%);
119
119
  }
120
120
  .semi-popover-wrapper[x-placement=left].semi-popover-with-arrow,
@@ -146,7 +146,7 @@
146
146
  width: 8px;
147
147
  height: 24px;
148
148
  left: -7px;
149
- top: 50%;
149
+ top: var(--semi-tooltip-arrow-offset-y, 50%);
150
150
  transform: translateY(-50%) rotate(180deg);
151
151
  }
152
152
  .semi-popover-wrapper[x-placement=right].semi-popover-with-arrow,
@@ -175,7 +175,7 @@
175
175
  }
176
176
  .semi-popover-wrapper[x-placement=bottom] .semi-popover-icon-arrow {
177
177
  top: -7px;
178
- left: 50%;
178
+ left: var(--semi-tooltip-arrow-offset-x, 50%);
179
179
  transform: translateX(-50%) rotate(180deg);
180
180
  }
181
181
  .semi-popover-wrapper[x-placement=bottom].semi-popover-with-arrow,
@@ -5,7 +5,7 @@
5
5
  box-sizing: border-box;
6
6
  font-size: 14px;
7
7
  line-height: 20px;
8
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
8
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
9
9
  position: relative;
10
10
  display: inline-flex;
11
11
  column-gap: 8px;
@@ -291,7 +291,7 @@
291
291
  .semi-radioGroup {
292
292
  font-size: 14px;
293
293
  line-height: 20px;
294
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
294
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
295
295
  }
296
296
  .semi-radioGroup-vertical {
297
297
  display: flex;
@@ -81,6 +81,12 @@ class ItemFoundation extends _foundation.default {
81
81
  const scrollRect = scrollWrapper.getBoundingClientRect();
82
82
  const lastRect = lastNode.getBoundingClientRect();
83
83
  const listHeight = lastRect.height * list.length;
84
+ // Guard against environments where layout is not computed
85
+ // (e.g. jsdom returns all-zero rects), which would otherwise
86
+ // make `baseTop += listHeight` a no-op and loop forever.
87
+ if (listHeight <= 0) {
88
+ return 0;
89
+ }
84
90
  let baseTop = lastRect.top;
85
91
  let count = 0;
86
92
  while (baseTop <= scrollRect.top + scrollRect.height * ratio) {
@@ -113,6 +119,12 @@ class ItemFoundation extends _foundation.default {
113
119
  const scrollRect = scrollWrapper.getBoundingClientRect();
114
120
  const firstRect = firstNode.getBoundingClientRect();
115
121
  const listHeight = firstRect.height * list.length;
122
+ // Guard against environments where layout is not computed
123
+ // (e.g. jsdom returns all-zero rects), which would otherwise
124
+ // make `baseTop -= listHeight` a no-op and loop forever.
125
+ if (listHeight <= 0) {
126
+ return 0;
127
+ }
116
128
  let baseTop = firstRect.top;
117
129
  let count = 0;
118
130
  while (baseTop + firstRect.height >= scrollRect.top - scrollRect.height * ratio) {
@@ -10,7 +10,7 @@
10
10
  overflow: hidden;
11
11
  font-size: 14px;
12
12
  line-height: 20px;
13
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
13
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
14
14
  user-select: none;
15
15
  display: flex;
16
16
  flex-direction: column;
@@ -26,7 +26,7 @@
26
26
  color: var(--semi-color-text-0);
27
27
  font-size: 14px;
28
28
  line-height: 20px;
29
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
29
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
30
30
  }
31
31
  .semi-scrolllist-body {
32
32
  display: flex;
@@ -4,7 +4,7 @@
4
4
  .semi-select-option {
5
5
  font-size: 14px;
6
6
  line-height: 20px;
7
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
7
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
8
8
  word-break: break-all;
9
9
  padding-left: 12px;
10
10
  padding-right: 12px;
@@ -110,7 +110,7 @@
110
110
  .semi-select-large .semi-select-selection {
111
111
  font-size: 16px;
112
112
  line-height: 22px;
113
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
113
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
114
114
  }
115
115
  .semi-select-open, .semi-select-focus {
116
116
  border: 1px solid var(--semi-color-focus-border);
@@ -184,7 +184,7 @@
184
184
  .semi-select-selection {
185
185
  font-size: 14px;
186
186
  line-height: 20px;
187
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
187
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
188
188
  height: 100%;
189
189
  display: flex;
190
190
  align-items: center;
@@ -309,7 +309,7 @@
309
309
  color: var(--semi-color-text-2);
310
310
  font-size: 14px;
311
311
  line-height: 20px;
312
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
312
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
313
313
  font-weight: 600;
314
314
  }
315
315
  .semi-select-prefix-icon, .semi-select-suffix-icon {
@@ -340,7 +340,7 @@
340
340
  font-weight: 600;
341
341
  font-size: 14px;
342
342
  line-height: 20px;
343
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
343
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
344
344
  color: var(--semi-color-text-2);
345
345
  flex-shrink: 0;
346
346
  white-space: nowrap;
@@ -454,7 +454,7 @@
454
454
  padding-right: 16px;
455
455
  font-size: 12px;
456
456
  line-height: 16px;
457
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
457
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
458
458
  cursor: default;
459
459
  }
460
460
  .semi-select-group:not(:nth-of-type(1)) {
@@ -4,7 +4,7 @@
4
4
  .semi-sidesheet {
5
5
  font-size: 14px;
6
6
  line-height: 20px;
7
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
7
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
8
8
  position: fixed;
9
9
  margin: 0;
10
10
  top: 0;
@@ -59,7 +59,7 @@
59
59
  margin: 0;
60
60
  font-size: 18px;
61
61
  line-height: 24px;
62
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
62
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
63
63
  font-weight: 600;
64
64
  font-size: 18px;
65
65
  color: var(--semi-color-text-0);
@@ -34,7 +34,7 @@
34
34
  flex: 1;
35
35
  font-size: 16px;
36
36
  line-height: 22px;
37
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
37
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
38
38
  font-weight: 600;
39
39
  }
40
40
  .semi-sidebar-container-header-closeBtn {
@@ -86,7 +86,7 @@
86
86
  .semi-sidebar-mcp-configure-content-header-count {
87
87
  font-size: 12px;
88
88
  line-height: 16px;
89
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
89
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
90
90
  vertical-align: middle;
91
91
  color: var(--semi-color-text-2);
92
92
  }
@@ -124,14 +124,14 @@
124
124
  .semi-sidebar-mcp-configure-content-item-content-label {
125
125
  font-size: 14px;
126
126
  line-height: 20px;
127
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
127
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
128
128
  font-weight: 600;
129
129
  color: var(--semi-color-text-0);
130
130
  }
131
131
  .semi-sidebar-mcp-configure-content-item-content-desc {
132
132
  font-size: 12px;
133
133
  line-height: 16px;
134
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
134
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
135
135
  color: var(--semi-color-text-0);
136
136
  overflow: hidden;
137
137
  text-overflow: ellipsis;
@@ -176,7 +176,7 @@
176
176
  -webkit-box-orient: vertical;
177
177
  font-size: 14px;
178
178
  line-height: 20px;
179
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
179
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
180
180
  color: var(--semi-color-text-0);
181
181
  font-weight: 600;
182
182
  }
@@ -193,7 +193,7 @@
193
193
  .semi-sidebar-annotation-item-footer-text {
194
194
  font-size: 12px;
195
195
  line-height: 16px;
196
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
196
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
197
197
  color: var(--semi-color-text-0);
198
198
  overflow: hidden;
199
199
  text-overflow: ellipsis;
@@ -212,7 +212,7 @@
212
212
  justify-content: center;
213
213
  font-size: 12px;
214
214
  line-height: 16px;
215
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
215
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
216
216
  color: var(--semi-color-text-2);
217
217
  }
218
218
  .semi-sidebar-annotation-item-text {
@@ -233,7 +233,7 @@
233
233
  -webkit-box-orient: vertical;
234
234
  font-size: 12px;
235
235
  line-height: 16px;
236
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
236
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
237
237
  color: var(--semi-color-text-2);
238
238
  }
239
239
  .semi-sidebar-annotation-item-video {
@@ -288,13 +288,13 @@
288
288
  border-radius: 4px;
289
289
  font-size: 12px;
290
290
  line-height: 16px;
291
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
291
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
292
292
  color: var(--semi-color-bg-0);
293
293
  }
294
294
  .semi-sidebar-annotation-item-video-title {
295
295
  font-size: 14px;
296
296
  line-height: 20px;
297
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
297
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
298
298
  color: var(--semi-color-text-0);
299
299
  }
300
300
  .semi-sidebar-code-content {
@@ -522,7 +522,7 @@
522
522
  .semi-sidebar-detail-header-title {
523
523
  font-size: 16px;
524
524
  line-height: 22px;
525
- font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
525
+ font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
526
526
  font-weight: 600;
527
527
  }
528
528
  .semi-sidebar-detail-header-right {