@bcc-code/vue-bcc-chat-ui 3.19.0 → 3.21.0

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@bcc-code/vue-bcc-chat-ui",
3
3
  "author": "bcc-code",
4
4
  "license": "Apache-2.0",
5
- "version": "3.19.0",
5
+ "version": "3.21.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -96,7 +96,19 @@ watchEffect(() => {
96
96
  watch([loggedIn, () => props.chatUid, chat.initialized], async ([_loggedIn, _chatUid, _initialized]) => {
97
97
  if (_loggedIn && _chatUid && _initialized) {
98
98
  chatGroup.value = (await chat.getGroup(props.chatUid)) ?? undefined;
99
- await chat.clearGroupChatCount(props.chatUid);
99
+
100
+ if (chatGroup.value) {
101
+ watchAndApplyStyle(".bcc-chat-message-list-wrapper", [
102
+ {
103
+ selector: ".cc-messagebubble-wrapper__container",
104
+ style: {
105
+ "max-width": (chatGroup.value.getMetadata() as any).isChannel ? "95%": "80%"
106
+ }
107
+ }
108
+ ])
109
+ }
110
+
111
+ await chat.clearGroupChatCount(props.chatUid);
100
112
  } else if (chatGroup.value) {
101
113
  chatGroup.value = undefined;
102
114
  }