@duro-app/ui 0.34.2 → 0.34.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duro-app/ui",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@duro-app/tokens": "^0.34.
|
|
56
|
+
"@duro-app/tokens": "^0.34.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/preset-typescript": "^7.28.0",
|
|
@@ -48,10 +48,14 @@ export const styles = css.create({
|
|
|
48
48
|
textAlign: 'end',
|
|
49
49
|
},
|
|
50
50
|
|
|
51
|
-
// Truncate
|
|
51
|
+
// Truncate. minWidth: 0 lets a truncating Text actually shrink inside a
|
|
52
|
+
// flex/grid container — without it, the default `min-width: auto` would
|
|
53
|
+
// keep the element at its content width, so text-overflow: ellipsis would
|
|
54
|
+
// never trigger and the text would just overflow the parent instead.
|
|
52
55
|
truncate: {
|
|
53
56
|
overflow: 'hidden',
|
|
54
57
|
textOverflow: 'ellipsis',
|
|
55
58
|
whiteSpace: 'nowrap',
|
|
59
|
+
minWidth: 0,
|
|
56
60
|
},
|
|
57
61
|
})
|