@mangoc/dsh-sub2api-sync 0.2.6 → 0.2.7

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.
package/lib/client.cjs CHANGED
@@ -793,8 +793,13 @@ const CSS = `
793
793
 
794
794
  /* The options panel: fixed-positioned from the trigger (escapes the modal
795
795
  card's overflow clip), width-matched to it, search pinned on top, options
796
- scrolling below. */
796
+ scrolling below. position: fixed is load-bearing: MenuSurface defaults to
797
+ position: relative, and without this rule the panel becomes a flex item
798
+ inside the form row while the viewport-coordinate top/left from
799
+ useAnchoredPosition act as relative offsets — the panel displaces across
800
+ the dialog and stays clipped by the card (the blank floating box bug). */
797
801
  .s2s-groupPanel {
802
+ position: fixed;
798
803
  display: flex;
799
804
  flex-direction: column;
800
805
  box-sizing: border-box;
@@ -1396,8 +1401,8 @@ function GroupPicker({ groups, value, placeholder, searchPlaceholder, emptyLabel
1396
1401
  ref: panelRef,
1397
1402
  className: "s2s-groupPanel",
1398
1403
  role: "listbox",
1399
- style: position === null ? { visibility: "hidden" } : {
1400
- ...position,
1404
+ style: {
1405
+ ...position === null ? { visibility: "hidden" } : position,
1401
1406
  ...triggerWidth > 0 ? { width: `${triggerWidth}px` } : {},
1402
1407
  maxHeight: `${maxHeight}px`
1403
1408
  },
package/lib/client.js CHANGED
@@ -799,8 +799,13 @@ const CSS = `
799
799
 
800
800
  /* The options panel: fixed-positioned from the trigger (escapes the modal
801
801
  card's overflow clip), width-matched to it, search pinned on top, options
802
- scrolling below. */
802
+ scrolling below. position: fixed is load-bearing: MenuSurface defaults to
803
+ position: relative, and without this rule the panel becomes a flex item
804
+ inside the form row while the viewport-coordinate top/left from
805
+ useAnchoredPosition act as relative offsets — the panel displaces across
806
+ the dialog and stays clipped by the card (the blank floating box bug). */
803
807
  .s2s-groupPanel {
808
+ position: fixed;
804
809
  display: flex;
805
810
  flex-direction: column;
806
811
  box-sizing: border-box;
@@ -1402,8 +1407,8 @@ function GroupPicker({ groups, value, placeholder, searchPlaceholder, emptyLabel
1402
1407
  ref: panelRef,
1403
1408
  className: "s2s-groupPanel",
1404
1409
  role: "listbox",
1405
- style: position === null ? { visibility: "hidden" } : {
1406
- ...position,
1410
+ style: {
1411
+ ...position === null ? { visibility: "hidden" } : position,
1407
1412
  ...triggerWidth > 0 ? { width: `${triggerWidth}px` } : {},
1408
1413
  maxHeight: `${maxHeight}px`
1409
1414
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mangoc/dsh-sub2api-sync",
3
3
  "description": "Sync one sub2api instance's groups, keys, and models into dsh-llm-pi-ai provider routes: panel-driven login (password / OAuth), one relay key one provider.",
4
- "version": "0.2.6",
4
+ "version": "0.2.7",
5
5
  "license": "MIT",
6
6
  "author": "Shuai-S",
7
7
  "homepage": "https://github.com/Shuai-S/dsh-sub2api-sync#readme",