@repobit/dex-system-design 0.23.89 → 0.23.91
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 +15 -0
- package/package.json +4 -4
- package/src/components/cards/card.css.js +7 -3
- package/src/components/cards/card.js +10 -37
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,21 @@
|
|
|
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.91](https://github.com/bitdefender/dex-core/compare/@repobit/dex-system-design@0.23.90...@repobit/dex-system-design@0.23.91) (2026-07-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @repobit/dex-system-design
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* **DEX-1014:** card adjustments
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
## [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
22
|
|
|
8
23
|
### 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.91",
|
|
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.
|
|
78
|
-
"@repobit/dex-store-elements": "1.
|
|
77
|
+
"@repobit/dex-store": "1.4.0",
|
|
78
|
+
"@repobit/dex-store-elements": "1.6.0",
|
|
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": "fda99147bdf326dcff5282da94327793181df84f"
|
|
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:
|
|
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
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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");
|