@lobehub/ui 2.24.1 → 2.24.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.
@@ -91,9 +91,10 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
91
91
  unoptimized: unoptimized,
92
92
  width: size
93
93
  }) : avatar;
94
+ var hasBackground = background && background !== 'transparent' && background !== 'rgba(0,0,0,0)' && background !== null;
94
95
  var customAvatar = emoji ? /*#__PURE__*/_jsx(FluentEmoji, {
95
96
  emoji: emoji,
96
- size: emojiScaleWithBackground ? background ? size * 0.8 : size : size * 0.8,
97
+ size: emojiScaleWithBackground ? hasBackground ? size * 0.8 : size : size * 0.8,
97
98
  type: animation ? 'anim' : '3d',
98
99
  unoptimized: unoptimized
99
100
  }) : sliceText ? text === null || text === void 0 ? void 0 : text.toUpperCase().slice(0, 2) : text === null || text === void 0 ? void 0 : text.toUpperCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "2.24.1",
3
+ "version": "2.24.2",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",