km-card-layout-core 0.1.9 → 0.1.11

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/dist/index.js CHANGED
@@ -232,8 +232,6 @@ const buildWrapperStyle = (el, unit) => {
232
232
  height: (0, exports.addUnit)(abs.height, unit),
233
233
  zIndex: abs.zIndex,
234
234
  boxSizing: 'border-box',
235
- display: 'flex',
236
- alignItems: 'center',
237
235
  }, unit);
238
236
  };
239
237
  const buildPanelContentStyle = (el, unit) => (0, exports.styleObjectToString)({
@@ -253,9 +251,7 @@ const buildTextContentStyle = (el, unit) => {
253
251
  wordBreak: 'break-word',
254
252
  lineHeight: ((_b = el.style) === null || _b === void 0 ? void 0 : _b.lineHeight) !== undefined && ((_c = el.style) === null || _c === void 0 ? void 0 : _c.lineHeight) !== null
255
253
  ? el.style.lineHeight
256
- : '1.2',
257
- display: 'inline-flex',
258
- alignItems: 'center',
254
+ : '',
259
255
  };
260
256
  if (textAlign)
261
257
  style.textAlign = textAlign;
package/index.ts CHANGED
@@ -265,8 +265,6 @@ const buildWrapperStyle = (el: CardElement, unit: 'px' | 'rpx'): string => {
265
265
  height: addUnit(abs.height, unit),
266
266
  zIndex: abs.zIndex,
267
267
  boxSizing: 'border-box',
268
- display: 'flex',
269
- alignItems: 'center',
270
268
  },
271
269
  unit
272
270
  );
@@ -297,9 +295,7 @@ const buildTextContentStyle = (el: TextElement, unit: 'px' | 'rpx') => {
297
295
  lineHeight:
298
296
  el.style?.lineHeight !== undefined && el.style?.lineHeight !== null
299
297
  ? el.style.lineHeight
300
- : '1.2',
301
- display: 'inline-flex',
302
- alignItems: 'center',
298
+ : '',
303
299
  };
304
300
  if (textAlign) style.textAlign = textAlign;
305
301
  return styleObjectToString(style, unit);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "km-card-layout-core",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Shared render helpers for CardMaster layout JSON (binding resolution, layout normalization).",
5
5
  "main": "dist/index.js",
6
6
  "types": "types.d.ts",