@lobehub/ui 1.116.0 → 1.116.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/es/ChatItem/index.js +6 -11
- package/es/ChatItem/style.js +1 -1
- package/package.json +1 -1
package/es/ChatItem/index.js
CHANGED
|
@@ -6,6 +6,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
6
6
|
import { useResponsive } from 'antd-style';
|
|
7
7
|
import { Suspense, lazy, memo } from 'react';
|
|
8
8
|
import { Flexbox } from 'react-layout-kit';
|
|
9
|
+
import Actions from "./components/Actions";
|
|
9
10
|
import Avatar from "./components/Avatar";
|
|
10
11
|
import BorderSpacing from "./components/BorderSpacing";
|
|
11
12
|
import MessageContent from "./components/MessageContent";
|
|
@@ -13,9 +14,6 @@ import Title from "./components/Title";
|
|
|
13
14
|
import { useStyles } from "./style";
|
|
14
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
var Actions = /*#__PURE__*/lazy(function () {
|
|
17
|
-
return import("./components/Actions");
|
|
18
|
-
});
|
|
19
17
|
var ErrorContent = /*#__PURE__*/lazy(function () {
|
|
20
18
|
return import("./components/ErrorContent");
|
|
21
19
|
});
|
|
@@ -101,14 +99,11 @@ var ChatItem = /*#__PURE__*/memo(function (_ref) {
|
|
|
101
99
|
renderMessage: renderMessage,
|
|
102
100
|
text: text,
|
|
103
101
|
type: type
|
|
104
|
-
}), /*#__PURE__*/_jsx(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
placement: placement,
|
|
110
|
-
type: type
|
|
111
|
-
})
|
|
102
|
+
}), /*#__PURE__*/_jsx(Actions, {
|
|
103
|
+
actions: actions,
|
|
104
|
+
editing: editing,
|
|
105
|
+
placement: placement,
|
|
106
|
+
type: type
|
|
112
107
|
})]
|
|
113
108
|
})]
|
|
114
109
|
}), mobile && type === 'block' && /*#__PURE__*/_jsx(BorderSpacing, {
|
package/es/ChatItem/style.js
CHANGED
|
@@ -29,7 +29,7 @@ export var useStyles = createStyles(function (_ref, _ref2) {
|
|
|
29
29
|
errorContent: css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n ", " {\n width: 100%;\n }\n "])), responsive.mobile),
|
|
30
30
|
loading: css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n position: absolute;\n right: ", ";\n bottom: 0;\n left: ", ";\n\n width: 16px;\n height: 16px;\n\n color: ", ";\n\n background: ", ";\n border-radius: 50%;\n "])), placement === 'left' ? '-4px' : 'unset', placement === 'right' ? '-4px' : 'unset', token.colorBgLayout, token.colorPrimary),
|
|
31
31
|
message: cx(typeStylish, css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n position: relative;\n "])))),
|
|
32
|
-
messageContainer: cx(editingStylish, css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n position: relative;\n\n ", " {\n max-width: 100%;\n }\n "])), responsive.mobile)),
|
|
32
|
+
messageContainer: cx(editingStylish, css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n position: relative;\n\n ", " {\n overflow-x: auto;\n max-width: 100%;\n }\n "])), responsive.mobile)),
|
|
33
33
|
messageContent: cx(editingStylish, css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n position: relative;\n overflow-x: hidden;\n\n ", " {\n flex-direction: column !important;\n width: 100%;\n }\n "])), responsive.mobile)),
|
|
34
34
|
messageExtra: cx('message-extra'),
|
|
35
35
|
name: css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n position: ", ";\n top: ", ";\n right: ", ";\n left: ", ";\n\n margin-bottom: 6px;\n\n font-size: 12px;\n line-height: 1;\n color: ", ";\n text-align: ", ";\n "])), showTitle ? 'relative' : 'absolute', showTitle ? 'unset' : '-16px', placement === 'right' ? '0' : 'unset', placement === 'left' ? '0' : 'unset', token.colorTextDescription, placement === 'left' ? 'left' : 'right')
|