@repobit/dex-system-design 0.23.78 → 0.23.80
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 +14 -0
- package/package.json +4 -4
- package/src/components/cards/card.css.js +4 -4
- package/src/components/cards/card.js +22 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.23.80](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.79...@repobit/dex-system-design@0.23.80) (2026-07-14)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **DEX-1014:** card adjustments
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.23.79](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.78...@repobit/dex-system-design@0.23.79) (2026-07-14)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **DEX-1014:** card adjustments
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
## [0.23.78](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.77...@repobit/dex-system-design@0.23.78) (2026-07-14)
|
|
7
21
|
|
|
8
22
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@repobit/dex-system-design",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.80",
|
|
4
4
|
"description": "Design system based on Web Components.",
|
|
5
5
|
"author": "Iordache Matei Cezar <miordache@bitdefender.com>",
|
|
6
6
|
"homepage": "https://github.com/bitdefender/dex-core#readme",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"url": "https://github.com/bitdefender/dex-core/issues"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@repobit/dex-store": "1.3.
|
|
78
|
-
"@repobit/dex-store-elements": "1.4.
|
|
77
|
+
"@repobit/dex-store": "1.3.76",
|
|
78
|
+
"@repobit/dex-store-elements": "1.4.68",
|
|
79
79
|
"lit": "^3.3.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"volta": {
|
|
93
93
|
"node": "24.14.0"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "79cd4a5a8cdccbaaeae68b1627b6e28287f0a1d2"
|
|
96
96
|
}
|
|
@@ -220,9 +220,9 @@ export default css`
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
@media (max-width: 1024px) {
|
|
223
|
-
.bd-light-box-s {
|
|
224
|
-
|
|
225
|
-
}
|
|
223
|
+
// .bd-light-box-s {
|
|
224
|
+
// padding: 1.5em;
|
|
225
|
+
// }
|
|
226
226
|
|
|
227
227
|
.bd-light-box-s h3 {
|
|
228
228
|
font-size: 1.1em;
|
|
@@ -261,7 +261,7 @@ export default css`
|
|
|
261
261
|
@media (max-width: 480px) {
|
|
262
262
|
.bd-light-box-s {
|
|
263
263
|
width: 100%;
|
|
264
|
-
padding: 1em;
|
|
264
|
+
// padding: 1em;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.bd-light-box-s h3 {
|
|
@@ -34,7 +34,6 @@ class Card extends LitElement {
|
|
|
34
34
|
const items = Array.from(this.querySelectorAll("bd-card-item"));
|
|
35
35
|
if (!items.length) return;
|
|
36
36
|
|
|
37
|
-
// Pe mobile — reset la dimensiuni naturale
|
|
38
37
|
if (window.innerWidth <= 768) {
|
|
39
38
|
items.forEach(item => {
|
|
40
39
|
const box = item.renderRoot?.querySelector(".bd-light-box-s");
|
|
@@ -42,15 +41,34 @@ class Card extends LitElement {
|
|
|
42
41
|
const titleW = item.renderRoot?.querySelector(".bd-light-title-badge-wrapper-s");
|
|
43
42
|
const contentW = item.renderRoot?.querySelector(".bd-card-content-wrapper");
|
|
44
43
|
|
|
45
|
-
if (box) { box.style.height = ""; box.style.minHeight = ""; box.style.width = "";
|
|
44
|
+
if (box) { box.style.height = ""; box.style.minHeight = ""; box.style.width = "auto"; }
|
|
46
45
|
if (iconW) { iconW.style.height = ""; }
|
|
47
46
|
if (titleW) { titleW.style.height = ""; }
|
|
48
47
|
if (contentW) { contentW.style.height = ""; }
|
|
49
48
|
});
|
|
49
|
+
|
|
50
|
+
requestAnimationFrame(() => {
|
|
51
|
+
let maxW = 0;
|
|
52
|
+
items.forEach(item => {
|
|
53
|
+
const box = item.renderRoot?.querySelector(".bd-light-box-s");
|
|
54
|
+
if (!box) return;
|
|
55
|
+
const rect = box.getBoundingClientRect();
|
|
56
|
+
if (rect.width > maxW) maxW = rect.width;
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
if (maxW > 0) {
|
|
60
|
+
items.forEach(item => {
|
|
61
|
+
const box = item.renderRoot?.querySelector(".bd-light-box-s");
|
|
62
|
+
if (box) {
|
|
63
|
+
box.style.width = `${maxW}px`;
|
|
64
|
+
box.style.minWidth = `${maxW}px`;
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
50
70
|
return;
|
|
51
71
|
}
|
|
52
|
-
|
|
53
|
-
// Reset toate
|
|
54
72
|
items.forEach(item => {
|
|
55
73
|
const box = item.renderRoot?.querySelector(".bd-light-box-s");
|
|
56
74
|
const iconW = item.renderRoot?.querySelector(".bd-light-box-header-s");
|