@repobit/dex-system-design 0.23.78 → 0.23.79

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
@@ -3,6 +3,13 @@
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.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)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **DEX-1014:** card adjustments
11
+
12
+
6
13
  ## [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
14
 
8
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@repobit/dex-system-design",
3
- "version": "0.23.78",
3
+ "version": "0.23.79",
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.74",
78
- "@repobit/dex-store-elements": "1.4.66",
77
+ "@repobit/dex-store": "1.3.75",
78
+ "@repobit/dex-store-elements": "1.4.67",
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": "b6ee4174f9c6d8cdfaf5813ec40600836a6357b8"
95
+ "gitHead": "d2565cd0231e2612388581ddbaca7bdc1a5728bd"
96
96
  }
@@ -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 = ""; box.style.minWidth = ""; }
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");