@bbki.ng/site 5.5.4 → 5.5.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 5.5.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 0929759: fix padding
8
+ - Updated dependencies [0929759]
9
+ - @bbki.ng/ui@0.2.6
10
+
11
+ ## 5.5.5
12
+
13
+ ### Patch Changes
14
+
15
+ - 41f402d: fix: icon
16
+ - 1730cbc: padding top shake
17
+ - Updated dependencies [41f402d]
18
+ - Updated dependencies [1730cbc]
19
+ - @bbki.ng/ui@0.2.5
20
+
3
21
  ## 5.5.4
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "5.5.4",
3
+ "version": "5.5.6",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -14,7 +14,7 @@
14
14
  "react-dom": "^18.0.0",
15
15
  "react-router-dom": "6",
16
16
  "swr": "^2.2.5",
17
- "@bbki.ng/ui": "0.2.4"
17
+ "@bbki.ng/ui": "0.2.6"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@eslint/compat": "^1.0.0",
package/src/blog/app.tsx CHANGED
@@ -29,7 +29,8 @@ const Layout = () => {
29
29
  loading={isLoading}
30
30
  customLogo={logo}
31
31
  style={{
32
- paddingTop: 'calc(env(safe-area-inset-top) + 4px)',
32
+ paddingTop: 'var(--safe-top)',
33
+ transition: 'all .2s ease-in-out',
33
34
  }}
34
35
  />
35
36
  }
package/src/blog/main.css CHANGED
@@ -67,12 +67,22 @@ a {
67
67
  backface-visibility: hidden;
68
68
  }
69
69
 
70
+ :root {
71
+ --safe-top: 0px; /* 立即确定的初始值 */
72
+ }
73
+
74
+ @supports (padding-top: env(safe-area-inset-top)) {
75
+ :root {
76
+ --safe-top: calc(env(safe-area-inset-top) + 4px);
77
+ }
78
+ }
79
+
70
80
  #blog {
71
81
  overflow: auto;
72
82
  -ms-overflow-style: none; /* Internet Explorer 10+ */
73
83
  scrollbar-width: none;
74
- padding-top: env(safe-area-inset-top);
75
- padding-bottom: env(safe-area-inset-bottom);
84
+ transition: all 0.2s ease-in-out;
85
+ padding-top: var(--safe-top);
76
86
  box-sizing: border-box;
77
87
  }
78
88
 
package/vite.config.js CHANGED
@@ -119,11 +119,13 @@ export default defineConfig({
119
119
  src: 'pwa-192x192.png',
120
120
  sizes: '192x192',
121
121
  type: 'image/png',
122
+ purpose: 'maskable',
122
123
  },
123
124
  {
124
125
  src: 'pwa-512x512.png',
125
126
  sizes: '512x512',
126
127
  type: 'image/png',
128
+ purpose: 'maskable',
127
129
  },
128
130
  {
129
131
  src: 'pwa-512x512.png',