@repobit/dex-system-design 0.23.73 → 0.23.74

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.74](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.73...@repobit/dex-system-design@0.23.74) (2026-07-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **DEX-1014:** card adjustment
11
+
12
+
6
13
  ## [0.23.73](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.72...@repobit/dex-system-design@0.23.73) (2026-07-08)
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.73",
3
+ "version": "0.23.74",
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.69",
78
- "@repobit/dex-store-elements": "1.4.61",
77
+ "@repobit/dex-store": "1.3.70",
78
+ "@repobit/dex-store-elements": "1.4.62",
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": "c2b31338e7ca8c4e8cc49cd4e7ed95419f23b369"
95
+ "gitHead": "34549da60da7a7d836007c32887fdc919ba77190"
96
96
  }
@@ -181,20 +181,25 @@ class CardItem extends LitElement {
181
181
 
182
182
  if (iconEl) {
183
183
  const clone = iconEl.cloneNode(true);
184
+
185
+ const originalW = iconEl.getAttribute("width");
186
+ const originalH = iconEl.getAttribute("height");
187
+
184
188
  clone.style.maxWidth = "120px";
185
189
  clone.style.maxHeight = "120px";
186
- clone.style.width = "auto";
187
- clone.style.height = "auto";
190
+ clone.style.width = originalW ? `${originalW}px` : "auto";
191
+ clone.style.height = originalH ? `${originalH}px` : "auto";
188
192
  clone.style.objectFit = "contain";
189
193
  clone.style.display = "block";
190
194
 
191
- // Aplica si pe img din interior (ex: picture > img)
192
195
  const innerImg = clone.querySelector("img");
193
196
  if (innerImg) {
197
+ const imgW = innerImg.getAttribute("width");
198
+ const imgH = innerImg.getAttribute("height");
194
199
  innerImg.style.maxWidth = "120px";
195
200
  innerImg.style.maxHeight = "120px";
196
- innerImg.style.width = "auto";
197
- innerImg.style.height = "auto";
201
+ innerImg.style.width = imgW ? `${Math.min(parseInt(imgW), 120)}px` : "auto";
202
+ innerImg.style.height = imgH ? `${Math.min(parseInt(imgH), 120)}px` : "auto";
198
203
  innerImg.style.objectFit = "contain";
199
204
  innerImg.style.display = "block";
200
205
  innerImg.removeAttribute("width");