@fonixtree/magic-design 0.0.139 → 0.0.141

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.
@@ -36,9 +36,10 @@
36
36
 
37
37
 
38
38
  &.position-6 {
39
- position: relative;
40
- float: left;
39
+ position: unset;
41
40
  height: 18px;
42
41
  margin-right: 5px;
42
+ vertical-align: middle;
43
+ float: left;
43
44
  }
44
45
  }
@@ -186,16 +186,17 @@ function (_super) {
186
186
  });
187
187
  })), /*#__PURE__*/_react["default"].createElement("div", {
188
188
  className: "product-name-wrap"
189
+ }, /*#__PURE__*/_react["default"].createElement("div", {
190
+ className: "box"
189
191
  }, prodLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
190
192
  labels: prodLabels,
191
193
  small: true
192
194
  }), showProName && panelProps.productName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
193
- className: "product-name",
194
195
  data: __assign(__assign({}, panelProps.productName), {
195
196
  text: data.offerName
196
197
  }),
197
198
  readonly: true
198
- })), panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
199
+ }))), panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
199
200
  className: "price",
200
201
  data: __assign(__assign({}, panelProps.activityPrice), {
201
202
  text: _price
@@ -34,18 +34,13 @@
34
34
  }
35
35
 
36
36
  .product-name-wrap {
37
- margin-bottom: 3px;
37
+ overflow: hidden;
38
+ text-overflow: ellipsis;
38
39
  display: -webkit-box;
39
- -webkit-line-clamp: 2;
40
40
  -webkit-box-orient: vertical;
41
- overflow: hidden;
42
- clear: both;
43
- }
44
-
45
- .product-name {
41
+ -webkit-line-clamp: 2;
46
42
  line-height: 18px;
47
- word-break: break-all;
48
- white-space: normal;
43
+ max-height: 40px;
49
44
  }
50
45
 
51
46
  .price {
@@ -36,9 +36,10 @@
36
36
 
37
37
 
38
38
  &.position-6 {
39
- position: relative;
40
- float: left;
39
+ position: unset;
41
40
  height: 18px;
42
41
  margin-right: 5px;
42
+ vertical-align: middle;
43
+ float: left;
43
44
  }
44
45
  }
@@ -186,16 +186,17 @@ function (_super) {
186
186
  });
187
187
  })), /*#__PURE__*/_react["default"].createElement("div", {
188
188
  className: "product-name-wrap"
189
+ }, /*#__PURE__*/_react["default"].createElement("div", {
190
+ className: "box"
189
191
  }, prodLabels.length > 0 && /*#__PURE__*/_react["default"].createElement(_ImageLabel["default"], {
190
192
  labels: prodLabels,
191
193
  small: true
192
194
  }), showProName && panelProps.productName.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
193
- className: "product-name",
194
195
  data: __assign(__assign({}, panelProps.productName), {
195
196
  text: data.offerName
196
197
  }),
197
198
  readonly: true
198
- })), panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
199
+ }))), panelProps.activityPrice.open && /*#__PURE__*/_react["default"].createElement(_components.MetaText, {
199
200
  className: "price",
200
201
  data: __assign(__assign({}, panelProps.activityPrice), {
201
202
  text: _price
@@ -34,18 +34,13 @@
34
34
  }
35
35
 
36
36
  .product-name-wrap {
37
- margin-bottom: 3px;
37
+ overflow: hidden;
38
+ text-overflow: ellipsis;
38
39
  display: -webkit-box;
39
- -webkit-line-clamp: 2;
40
40
  -webkit-box-orient: vertical;
41
- overflow: hidden;
42
- clear: both;
43
- }
44
-
45
- .product-name {
41
+ -webkit-line-clamp: 2;
46
42
  line-height: 18px;
47
- word-break: break-all;
48
- white-space: normal;
43
+ max-height: 40px;
49
44
  }
50
45
 
51
46
  .price {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.139",
4
+ "version": "0.0.141",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",