@nocobase/client-v2 2.2.47 → 2.2.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/client-v2",
3
- "version": "2.2.47",
3
+ "version": "2.2.49",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -27,11 +27,11 @@
27
27
  "@formily/antd-v5": "1.2.3",
28
28
  "@formily/react": "^2.2.27",
29
29
  "@formily/shared": "^2.2.27",
30
- "@nocobase/evaluators": "2.2.47",
31
- "@nocobase/flow-engine": "2.2.47",
32
- "@nocobase/sdk": "2.2.47",
33
- "@nocobase/shared": "2.2.47",
34
- "@nocobase/utils": "2.2.47",
30
+ "@nocobase/evaluators": "2.2.49",
31
+ "@nocobase/flow-engine": "2.2.49",
32
+ "@nocobase/sdk": "2.2.49",
33
+ "@nocobase/shared": "2.2.49",
34
+ "@nocobase/utils": "2.2.49",
35
35
  "ahooks": "^3.7.2",
36
36
  "antd": "5.24.2",
37
37
  "antd-style": "3.7.1",
@@ -49,5 +49,5 @@
49
49
  "react-router-dom": "^6.30.1",
50
50
  "zxing-wasm": "^3.1.3"
51
51
  },
52
- "gitHead": "f827e4f861022e813452f37af70b41d24cfc196e"
52
+ "gitHead": "5741e7aab474f0375b509641031a69a78065bc98"
53
53
  }
@@ -136,6 +136,8 @@ const popoverStyle = css`
136
136
  }
137
137
  `;
138
138
 
139
+ const siderToggleZIndex = 200;
140
+
139
141
  const CollapsedButton: FC<{ collapsed: boolean }> = (props) => {
140
142
  const { token } = antdTheme.useToken();
141
143
  const customToken = token as CustomToken;
@@ -162,7 +164,7 @@ const CollapsedButton: FC<{ collapsed: boolean }> = (props) => {
162
164
  .ant-pro-sider-collapsed-button {
163
165
  top: 64px;
164
166
  left: ${props.collapsed ? 52 : (customToken.siderWidth || 200) - 12}px;
165
- z-index: 200;
167
+ z-index: ${siderToggleZIndex};
166
168
  transition: left 0.2s;
167
169
  }
168
170
  `}
@@ -661,6 +663,11 @@ export const AdminLayoutComponent = observer((props: any) => {
661
663
  z-index: 101 !important;
662
664
  }
663
665
 
666
+ /* The switcher popup is mounted inside the header, while the sider toggle is portaled outside it. */
667
+ .ant-layout-header.ant-pro-layout-header:has(.ant-pro-layout-apps-icon-active) {
668
+ z-index: ${siderToggleZIndex + 1} !important;
669
+ }
670
+
664
671
  .ant-pro-layout-apps-popover {
665
672
  z-index: 2000 !important;
666
673
  }