aprog 1.4.6 → 1.4.8
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 +1 -1
- package/src/Paginate.js +5 -9
package/package.json
CHANGED
package/src/Paginate.js
CHANGED
|
@@ -13,6 +13,9 @@ export const Paginate = ({ count = 0, currentPage = 1, onPageChange = () => {},
|
|
|
13
13
|
const styles = `
|
|
14
14
|
<style>
|
|
15
15
|
.paginate-block {
|
|
16
|
+
position: absolute;
|
|
17
|
+
bottom: -3rem;
|
|
18
|
+
left: 50%;
|
|
16
19
|
width: 100%;
|
|
17
20
|
padding: 0 20px;
|
|
18
21
|
margin: 20px 0;
|
|
@@ -20,6 +23,7 @@ export const Paginate = ({ count = 0, currentPage = 1, onPageChange = () => {},
|
|
|
20
23
|
align-items: center;
|
|
21
24
|
justify-content: center;
|
|
22
25
|
gap: 5px;
|
|
26
|
+
transform: translateX(-50%);
|
|
23
27
|
}
|
|
24
28
|
.paginate-btn,
|
|
25
29
|
.paginate-dots,
|
|
@@ -127,15 +131,7 @@ export const Paginate = ({ count = 0, currentPage = 1, onPageChange = () => {},
|
|
|
127
131
|
// );
|
|
128
132
|
|
|
129
133
|
return div({
|
|
130
|
-
|
|
131
|
-
width: "100%",
|
|
132
|
-
padding: "0 20px",
|
|
133
|
-
margin: "20px 0",
|
|
134
|
-
display: "flex",
|
|
135
|
-
alignItems: "center",
|
|
136
|
-
justifyContent: "center",
|
|
137
|
-
gap: "5px"
|
|
138
|
-
},
|
|
134
|
+
class: "paginate-block",
|
|
139
135
|
value: [
|
|
140
136
|
[styles],
|
|
141
137
|
button({
|