@umbraco-ui/uui-card-content-node 1.12.2 → 1.13.0-rc.2
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/lib/index.js +13 -3
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -68,13 +68,15 @@ let UUICardContentNodeElement = class extends UUICardElement {
|
|
|
68
68
|
_UUICardContentNodeElement_instances = new WeakSet();
|
|
69
69
|
renderContent_fn = function() {
|
|
70
70
|
return html`
|
|
71
|
-
<span id="content">
|
|
71
|
+
<span id="content" class="uui-text">
|
|
72
72
|
<span id="item">
|
|
73
73
|
<span id="icon">
|
|
74
74
|
<slot name="icon" @slotchange=${this._onSlotIconChange}></slot>
|
|
75
75
|
${this._iconSlotHasContent === false ? this._renderFallbackIcon() : ""}
|
|
76
76
|
</span>
|
|
77
|
-
<div
|
|
77
|
+
<div title="${this.name}" id="name">
|
|
78
|
+
${this.name}<slot name="name"></slot>
|
|
79
|
+
</div>
|
|
78
80
|
</span>
|
|
79
81
|
${this.renderDetail()}
|
|
80
82
|
</span>
|
|
@@ -150,13 +152,21 @@ UUICardContentNodeElement.styles = [
|
|
|
150
152
|
#open-part {
|
|
151
153
|
display: flex;
|
|
152
154
|
position: relative;
|
|
153
|
-
font-weight: 700;
|
|
154
155
|
align-items: center;
|
|
155
156
|
cursor: pointer;
|
|
156
157
|
flex-grow: 1;
|
|
157
158
|
padding: var(--uui-size-space-4,12px) var(--uui-size-space-5,18px);
|
|
158
159
|
}
|
|
159
160
|
|
|
161
|
+
#open-part #name {
|
|
162
|
+
display: -webkit-box;
|
|
163
|
+
-webkit-line-clamp: 2;
|
|
164
|
+
-webkit-box-orient: vertical;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
text-overflow: ellipsis;
|
|
167
|
+
overflow-wrap: anywhere;
|
|
168
|
+
}
|
|
169
|
+
|
|
160
170
|
#content {
|
|
161
171
|
align-self: stretch;
|
|
162
172
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umbraco-ui/uui-card-content-node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0-rc.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Umbraco",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"custom-elements.json"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@umbraco-ui/uui-base": "1.
|
|
34
|
-
"@umbraco-ui/uui-card": "1.
|
|
35
|
-
"@umbraco-ui/uui-icon": "1.
|
|
33
|
+
"@umbraco-ui/uui-base": "1.13.0-rc.2",
|
|
34
|
+
"@umbraco-ui/uui-card": "1.13.0-rc.2",
|
|
35
|
+
"@umbraco-ui/uui-icon": "1.13.0-rc.2"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://uui.umbraco.com/?path=/story/uui-card-content-node",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "b7efeca91b64cfb5b59e1fcacafcfee23b861b79"
|
|
47
47
|
}
|