@repobit/dex-system-design 0.23.88 → 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,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.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
+
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)
14
+
15
+ ### Bug Fixes
16
+
17
+ * **DEX-1014:** card adjustments
18
+
19
+
6
20
  ## [0.23.88](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.87...@repobit/dex-system-design@0.23.88) (2026-07-16)
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.88",
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.84",
78
- "@repobit/dex-store-elements": "1.5.1",
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": "971af131324acdf322e7a01fff6549cebeabeab2"
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 {
@@ -60,10 +60,6 @@ class Card extends LitElement {
60
60
  const items = Array.from(this.querySelectorAll("bd-card-item"));
61
61
  if (!items.length) return;
62
62
 
63
- console.log('[bd-card-section] _equalizeHeights called', {
64
- innerWidth: window.innerWidth,
65
- items : items.length
66
- });
67
63
 
68
64
  if (window.innerWidth <= 768) {
69
65
  items.forEach(item => {
@@ -93,22 +89,6 @@ class Card extends LitElement {
93
89
  });
94
90
 
95
91
  requestAnimationFrame(() => {
96
- // Log box computed styles
97
- console.log('[bd-card-section] box computed styles:', items.map(item => {
98
- const box = item.renderRoot?.querySelector(".bd-light-box-s");
99
- if (!box) return null;
100
- const cs = getComputedStyle(box);
101
- return {
102
- width : box.getBoundingClientRect().width,
103
- computedWidth: cs.width,
104
- flex : cs.flex,
105
- minWidth : cs.minWidth,
106
- inlineWidth : box.style.width,
107
- cssVarOnHost : getComputedStyle(item).getPropertyValue('--bd-card-width'),
108
- cssVarOnBox : cs.getPropertyValue('--bd-card-width')
109
- };
110
- }));
111
-
112
92
  // Egalizare icon wrappers
113
93
  let maxIcon = 0;
114
94
  items.forEach(item => {
@@ -242,35 +222,24 @@ class CardItem extends LitElement {
242
222
  }
243
223
 
244
224
  _renderIcon() {
245
- const SMALL_ICON_THRESHOLD = 120;
246
- const SMALL_ICON_SIZE = 40;
247
-
248
225
  const iconEl = this.querySelector("[slot='icon']");
249
226
 
250
227
  if (iconEl) {
251
- const clone = iconEl.cloneNode(true);
252
- const originalW = iconEl.getAttribute("width");
253
- const originalH = iconEl.getAttribute("height");
228
+ const clone = iconEl.cloneNode(true);
254
229
 
255
- const isSmallIcon =
256
- (originalW && parseInt(originalW) <= SMALL_ICON_THRESHOLD) ||
257
- (originalH && parseInt(originalH) <= SMALL_ICON_THRESHOLD);
258
-
259
- const targetSize = isSmallIcon ? SMALL_ICON_SIZE : 120;
260
-
261
- clone.style.maxWidth = `${targetSize}px`;
262
- clone.style.maxHeight = `${targetSize}px`;
263
- clone.style.width = `${targetSize}px`;
264
- clone.style.height = `${targetSize}px`;
230
+ clone.style.maxWidth = "48px";
231
+ clone.style.maxHeight = "48px";
232
+ clone.style.width = "48px";
233
+ clone.style.height = "48px";
265
234
  clone.style.objectFit = "contain";
266
235
  clone.style.display = "block";
267
236
 
268
237
  const innerImg = clone.querySelector("img");
269
238
  if (innerImg) {
270
- innerImg.style.maxWidth = `${targetSize}px`;
271
- innerImg.style.maxHeight = `${targetSize}px`;
272
- innerImg.style.width = `${targetSize}px`;
273
- innerImg.style.height = `${targetSize}px`;
239
+ innerImg.style.maxWidth = "48px";
240
+ innerImg.style.maxHeight = "48px";
241
+ innerImg.style.width = "48px";
242
+ innerImg.style.height = "48px";
274
243
  innerImg.style.objectFit = "contain";
275
244
  innerImg.style.display = "block";
276
245
  innerImg.removeAttribute("width");
@@ -290,7 +259,6 @@ class CardItem extends LitElement {
290
259
 
291
260
  return "";
292
261
  }
293
-
294
262
  _hasContent() {
295
263
  const slottedNodes = [...this.childNodes].filter((node) => {
296
264
  if (node.nodeType === Node.ELEMENT_NODE) {