@smwb/ui-styles 1.4.0 → 1.4.1
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.
|
@@ -35,13 +35,24 @@
|
|
|
35
35
|
display: inline-flex;
|
|
36
36
|
align-items: center;
|
|
37
37
|
gap: @treeViewItemGap;
|
|
38
|
+
// While min-width is auto a flex item never shrinks below its content, so
|
|
39
|
+
// a long label claims max-content and spills out of the node instead of
|
|
40
|
+
// wrapping. The icon keeps its size regardless.
|
|
41
|
+
min-width: 0;
|
|
42
|
+
overflow-wrap: break-word;
|
|
43
|
+
|
|
44
|
+
> .smwb-icon__wrapper {
|
|
45
|
+
flex: none;
|
|
46
|
+
}
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
&__content {
|
|
41
50
|
display: flex;
|
|
42
51
|
align-items: center;
|
|
43
52
|
gap: @treeViewItemGap;
|
|
44
|
-
height:
|
|
53
|
+
// min-height, not height: a fixed row height let a wrapped two-line label
|
|
54
|
+
// overflow the node and overlap the next one.
|
|
55
|
+
min-height: 40px;
|
|
45
56
|
cursor: pointer;
|
|
46
57
|
user-select: none;
|
|
47
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smwb/ui-styles",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "Framework-agnostic LESS design tokens and component styles (smwb-*) shared by the @smwb UI libraries. Prebuilt aggregate CSS lives in @smwb/ui-css.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|