@bbki.ng/site 5.5.5 → 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,13 @@
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
+
3
11
  ## 5.5.5
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "5.5.5",
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.5"
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,7 @@ const Layout = () => {
29
29
  loading={isLoading}
30
30
  customLogo={logo}
31
31
  style={{
32
- paddingTop: 'var(--safe-top);',
32
+ paddingTop: 'var(--safe-top)',
33
33
  transition: 'all .2s ease-in-out',
34
34
  }}
35
35
  />
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
 
@@ -91,31 +101,3 @@ tr > th {
91
101
  max-width: 100px;
92
102
  width: 100px;
93
103
  }
94
-
95
- :root {
96
- --safe-top: 0px; /* 立即确定的初始值 */
97
- }
98
-
99
- @supports (padding-top: env(safe-area-inset-top)) {
100
- :root {
101
- --safe-top: env(safe-area-inset-top); /* 延迟计算的值 */
102
- }
103
- }
104
- :root {
105
- --safe-top: 0px; /* 立即确定的初始值 */
106
- }
107
-
108
- @supports (padding-top: env(safe-area-inset-top)) {
109
- :root {
110
- --safe-top: env(safe-area-inset-top); /* 延迟计算的值 */
111
- }
112
- }
113
- :root {
114
- --safe-top: 0px; /* 立即确定的初始值 */
115
- }
116
-
117
- @supports (padding-top: env(safe-area-inset-top)) {
118
- :root {
119
- --safe-top: calc(env(safe-area-inset-top) + 4px);
120
- }
121
- }