trithuc-mvc-react 3.3.0 → 3.3.2

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.
@@ -33,7 +33,11 @@ const ExportExcelButton = ({ tableName, data, size = "small" }) => {
33
33
  noWrap
34
34
  sx={{
35
35
  width: "100%",
36
- fontSize: "clamp(0.75rem, 1.5vw, 1rem)",
36
+ fontSize: {
37
+ xs: "0.75rem",
38
+ sm: "0.875rem",
39
+ md: "1rem"
40
+ },
37
41
  textAlign: "center",
38
42
  textTransform: "none" // ✅ Đảm bảo chữ gốc giữ nguyên
39
43
  }}
@@ -55,7 +59,11 @@ const ExportExcelButton = ({ tableName, data, size = "small" }) => {
55
59
  noWrap
56
60
  sx={{
57
61
  width: "100%",
58
- fontSize: "clamp(0.75rem, 1.5vw, 1rem)",
62
+ fontSize: {
63
+ xs: "0.75rem",
64
+ sm: "0.875rem",
65
+ md: "1rem"
66
+ },
59
67
  textAlign: "center",
60
68
  textTransform: "none" // ✅ Đảm bảo chữ gốc giữ nguyên
61
69
  }}
@@ -139,6 +139,12 @@ function DataManagement({
139
139
  return elementSize;
140
140
  }, [upXL]);
141
141
 
142
+ useEffect(() => {
143
+ setTimeout(() => {
144
+ window.dispatchEvent(new Event("resize"));
145
+ }, 50);
146
+ }, []);
147
+
142
148
  useEffect(() => {
143
149
  setDataSearch({ ...dataSearch, ...defaults });
144
150
  }, [filters]);
@@ -421,7 +427,11 @@ function DataManagement({
421
427
  noWrap
422
428
  sx={{
423
429
  width: "100%",
424
- fontSize: "clamp(0.75rem, 1.5vw, 1rem)",
430
+ fontSize: {
431
+ xs: "0.75rem",
432
+ sm: "0.875rem",
433
+ md: "1rem"
434
+ },
425
435
  textAlign: "center",
426
436
  textTransform: "none" // ✅ Đảm bảo chữ gốc giữ nguyên
427
437
  }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"