ugcinc-render 1.5.14 → 1.5.15

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
@@ -359,7 +359,7 @@ function countEmojis(text) {
359
359
  return matches ? matches.length : 0;
360
360
  }
361
361
  function getEmojiWidth(fontSize) {
362
- return fontSize * 1.3;
362
+ return fontSize * 1.2;
363
363
  }
364
364
  function stripEmojis(text) {
365
365
  EMOJI_REGEX.lastIndex = 0;
@@ -694,8 +694,7 @@ function TextElement({ segment, scale = 1 }) {
694
694
  height: "1.2em",
695
695
  width: "1.2em",
696
696
  verticalAlign: "-0.25em",
697
- display: "inline-block",
698
- margin: "0 0.05em"
697
+ display: "inline"
699
698
  },
700
699
  draggable: false
701
700
  },
package/dist/index.mjs CHANGED
@@ -271,7 +271,7 @@ function countEmojis(text) {
271
271
  return matches ? matches.length : 0;
272
272
  }
273
273
  function getEmojiWidth(fontSize) {
274
- return fontSize * 1.3;
274
+ return fontSize * 1.2;
275
275
  }
276
276
  function stripEmojis(text) {
277
277
  EMOJI_REGEX.lastIndex = 0;
@@ -606,8 +606,7 @@ function TextElement({ segment, scale = 1 }) {
606
606
  height: "1.2em",
607
607
  width: "1.2em",
608
608
  verticalAlign: "-0.25em",
609
- display: "inline-block",
610
- margin: "0 0.05em"
609
+ display: "inline"
611
610
  },
612
611
  draggable: false
613
612
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ugcinc-render",
3
- "version": "1.5.14",
3
+ "version": "1.5.15",
4
4
  "description": "Unified rendering package for UGC Inc - shared types, components, and compositions for pixel-perfect client/server rendering",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",