@ai-matrx/design-system 0.61.21 → 0.61.23
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 +12 -0
- package/dist/desktop.cjs +21 -15
- package/dist/desktop.cjs.map +1 -1
- package/dist/desktop.css +7 -2
- package/dist/desktop.d.cts +3 -1
- package/dist/desktop.d.ts +3 -1
- package/dist/desktop.js +21 -15
- package/dist/desktop.js.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -724,6 +724,7 @@ function findPillViolation(el, maxWidth = PILL_MAX_WIDTH_PX) {
|
|
|
724
724
|
if (lines > 1) {
|
|
725
725
|
return `pill wraps to ${lines} lines holding "${describe(el)}" \u2014 a pill is one line: clamp it (Badge, or truncate + max-w + title) or render a list row.`;
|
|
726
726
|
}
|
|
727
|
+
if (Math.abs(rect.width - rect.height) < 1) return null;
|
|
727
728
|
const slack = stretchSlack(el, own, cs, rect.width, view);
|
|
728
729
|
if (slack !== null && slack > PILL_STRETCH_TOLERANCE_PX) {
|
|
729
730
|
return `pill is stretched: ${Math.round(slack)}px of empty capsule beside "${describe(el)}" \u2014 a pill hugs its label; stop the parent stretching it (a grid cell: justify-self-start; drop w-full / flex-1), or render a full-width tappable item as a row, never a pill.`;
|