@repobit/dex-system-design 0.23.89 → 0.23.90

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.90](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.89...@repobit/dex-system-design@0.23.90) (2026-07-17)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **DEX-1014:** card adjustments
11
+
12
+
6
13
  ## [0.23.89](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.88...@repobit/dex-system-design@0.23.89) (2026-07-16)
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.89",
3
+ "version": "0.23.90",
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.85",
78
- "@repobit/dex-store-elements": "1.5.2",
77
+ "@repobit/dex-store": "1.3.86",
78
+ "@repobit/dex-store-elements": "1.5.3",
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": "655316a0cdee9b7084c8bd4c8e85ca31b45ff55b"
95
+ "gitHead": "abf075834b7c0fae83b233530b2bd5c1f1e9db09"
96
96
  }
@@ -57,7 +57,7 @@ export default css`
57
57
  position: relative;
58
58
  width: 100%;
59
59
  flex-direction: column;
60
- max-width: 1400px;
60
+ max-width: 1290px;
61
61
  margin: 0 auto;
62
62
  padding-top: var(--spacing-64);
63
63
  padding-bottom: var(--spacing-64);
@@ -212,13 +212,17 @@ export default css`
212
212
  padding: 0;
213
213
  align-items: stretch;
214
214
  }
215
-
215
+ ::slotted(bd-card-section) {
216
+ padding: 0 20px;
217
+ }
216
218
  ::slotted(bd-card-item) {
217
219
  width: 100% !important;
218
220
  max-width: 100% !important;
219
221
  flex: 0 0 auto !important;
220
222
  min-width: 0 !important;
221
- margin: 0 !important;
223
+ margin: 0 auto !important;
224
+ padding: 0 20px;
225
+
222
226
  }
223
227
 
224
228
  .bd-light-box-s {
@@ -225,48 +225,21 @@ class CardItem extends LitElement {
225
225
  const iconEl = this.querySelector("[slot='icon']");
226
226
 
227
227
  if (iconEl) {
228
- const clone = iconEl.cloneNode(true);
229
- const originalW = parseInt(iconEl.getAttribute("width") || "0");
230
- const originalH = parseInt(iconEl.getAttribute("height") || "0");
231
-
232
- const _calcSize = (w, h, el) => {
233
- // Daca nu are atribute, incearca sa citeasca dimensiunile reale
234
- if (!w && !h && el) {
235
- const rect = el.getBoundingClientRect();
236
- w = Math.round(rect.width);
237
- h = Math.round(rect.height);
238
- console.log('[bd-card-icon] fallback dimensions from rect:', { w, h });
239
- }
240
-
241
- // Daca tot nu stim dimensiunile, lasam ca e imagine mare
242
- if (!w && !h) return { w: 120, h: 120 };
243
-
244
- const dim = Math.max(w, h);
245
- if (dim <= 50) return { w, h };
246
- if (dim <= 100) return { w: 48, h: 48 };
247
- return { w: 120, h: 120 };
248
- };
249
-
250
- const { w: finalW, h: finalH } = _calcSize(originalW, originalH, iconEl);
251
-
252
-
253
- clone.style.maxWidth = "120px";
254
- clone.style.maxHeight = "120px";
255
- clone.style.width = `${finalW}px`;
256
- clone.style.height = `${finalH}px`;
228
+ const clone = iconEl.cloneNode(true);
229
+
230
+ clone.style.maxWidth = "48px";
231
+ clone.style.maxHeight = "48px";
232
+ clone.style.width = "48px";
233
+ clone.style.height = "48px";
257
234
  clone.style.objectFit = "contain";
258
235
  clone.style.display = "block";
259
236
 
260
237
  const innerImg = clone.querySelector("img");
261
238
  if (innerImg) {
262
- const imgW = parseInt(innerImg.getAttribute("width") || "0");
263
- const imgH = parseInt(innerImg.getAttribute("height") || "0");
264
- const { w: imgFinalW, h: imgFinalH } = _calcSize(imgW, imgH);
265
-
266
- innerImg.style.maxWidth = "120px";
267
- innerImg.style.maxHeight = "120px";
268
- innerImg.style.width = `${imgFinalW}px`;
269
- innerImg.style.height = `${imgFinalH}px`;
239
+ innerImg.style.maxWidth = "48px";
240
+ innerImg.style.maxHeight = "48px";
241
+ innerImg.style.width = "48px";
242
+ innerImg.style.height = "48px";
270
243
  innerImg.style.objectFit = "contain";
271
244
  innerImg.style.display = "block";
272
245
  innerImg.removeAttribute("width");