@liujitcn/kratos-taro-app-system 0.1.2 → 0.1.4

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
@@ -7,7 +7,7 @@
7
7
  "type": "git",
8
8
  "url": "git@github.com:liujitcn/kratos-admin.git"
9
9
  },
10
- "version": "0.1.2",
10
+ "version": "0.1.4",
11
11
  "type": "module",
12
12
  "files": [
13
13
  "dist",
@@ -39,8 +39,8 @@
39
39
  "@tarojs/components": "4.2.1",
40
40
  "@tarojs/taro": "4.2.1",
41
41
  "react": "18.3.1",
42
- "@liujitcn/kratos-taro-app-core": "^0.1.2",
43
- "@liujitcn/kratos-taro-app-ui": "^0.1.2"
42
+ "@liujitcn/kratos-taro-app-ui": "^0.1.4",
43
+ "@liujitcn/kratos-taro-app-core": "^0.1.4"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "pnpm run build:entries && pnpm pack --pack-destination ../../../dist/npm",
@@ -11,7 +11,7 @@ page {
11
11
  }
12
12
 
13
13
  .my-content {
14
- padding: 0 20px calc(40px + env(safe-area-inset-bottom));
14
+ padding: 0 20px var(--kratos-tab-bar-space, calc(104px + env(safe-area-inset-bottom)));
15
15
  }
16
16
 
17
17
  .my-stack {
@@ -13,6 +13,7 @@
13
13
  .composer {
14
14
  flex-shrink: 0;
15
15
  width: 100%;
16
+ margin-bottom: var(--kratos-tab-bar-space, calc(104px + env(safe-area-inset-bottom)));
16
17
  padding: 14px 24px calc(18px + env(safe-area-inset-bottom));
17
18
  overflow: hidden;
18
19
  background: var(--kratos-color-surface, #fff);
@@ -41,7 +41,7 @@
41
41
  .detail-page {
42
42
  box-sizing: border-box;
43
43
  min-height: 100vh;
44
- padding: 0 20px calc(96px + env(safe-area-inset-bottom));
44
+ padding: 0 20px var(--kratos-tab-bar-space, calc(104px + env(safe-area-inset-bottom)));
45
45
  background: var(--kratos-bg-gradient);
46
46
  color: var(--kratos-color-text);
47
47
  }
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* 导航组件统一处理顶部空间,页面只维护内容的水平与底部留白。 */
8
8
  .profile-content {
9
- padding: 0 20px calc(40px + env(safe-area-inset-bottom));
9
+ padding: 0 20px var(--kratos-tab-bar-space, calc(104px + env(safe-area-inset-bottom)));
10
10
  }
11
11
 
12
12
  /* 头像卡 */
@@ -6,7 +6,7 @@ page {
6
6
  .settings-viewport {
7
7
  min-height: 100vh;
8
8
  box-sizing: border-box;
9
- padding: 0 20px calc(40px + env(safe-area-inset-bottom));
9
+ padding: 0 20px var(--kratos-tab-bar-space, calc(104px + env(safe-area-inset-bottom)));
10
10
  background: var(--kratos-bg-gradient);
11
11
  }
12
12
 
@@ -68,7 +68,7 @@ export default function SettingsPage() {
68
68
  feedback: createIcon('<path d="M4 5h16v12H8l-4 4z"/>', violet),
69
69
  contact: createIcon('<path d="M4 5c0 9 6 15 15 15 1 0 2-1 2-2v-2l-4-2-2 2a11 11 0 0 1-5-5l2-2-2-4H6c-1 0-2 1-2 2Z"/>', primary),
70
70
  }
71
- }, [themeStore.theme])
71
+ }, [themeStore.colors.aiPrimary, themeStore.colors.aiWarning, themeStore.colors.aiViolet])
72
72
 
73
73
  const loadMfaStatus = async (force = false) => {
74
74
  if (!useUserStore.getState().isAuthenticated() || (mfaStatusLoading && !force)) return