stream-chat-react 8.0.0 → 8.1.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/dist/browser.full-bundle.js +1841 -640
- package/dist/browser.full-bundle.js.map +1 -1
- package/dist/browser.full-bundle.min.js +4 -4
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/components/Attachment/AttachmentActions.d.ts +0 -1
- package/dist/components/Attachment/AttachmentActions.d.ts.map +1 -1
- package/dist/components/Attachment/Audio.d.ts +0 -1
- package/dist/components/Attachment/Audio.d.ts.map +1 -1
- package/dist/components/Attachment/FileAttachment.d.ts +0 -1
- package/dist/components/Attachment/FileAttachment.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Item.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Item.js +2 -1
- package/dist/components/AutoCompleteTextarea/List.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.d.ts.map +1 -1
- package/dist/components/AutoCompleteTextarea/Textarea.js +1 -1
- package/dist/components/Channel/Channel.d.ts.map +1 -1
- package/dist/components/Channel/Channel.js +107 -32
- package/dist/components/Channel/channelState.d.ts +17 -0
- package/dist/components/Channel/channelState.d.ts.map +1 -1
- package/dist/components/Channel/channelState.js +24 -2
- package/dist/components/Channel/hooks/useCreateChannelStateContext.d.ts.map +1 -1
- package/dist/components/Channel/hooks/useCreateChannelStateContext.js +7 -1
- package/dist/components/Channel/hooks/useIsMounted.d.ts +0 -1
- package/dist/components/Channel/hooks/useIsMounted.d.ts.map +1 -1
- package/dist/components/Channel/utils.d.ts +5 -0
- package/dist/components/Channel/utils.d.ts.map +1 -0
- package/dist/components/Channel/utils.js +19 -0
- package/dist/components/ChannelHeader/icons.d.ts +0 -1
- package/dist/components/ChannelHeader/icons.d.ts.map +1 -1
- package/dist/components/ChannelHeader/icons.js +1 -1
- package/dist/components/ChannelList/ChannelList.d.ts +2 -3
- package/dist/components/ChannelList/ChannelList.d.ts.map +1 -1
- package/dist/components/ChannelList/ChannelList.js +1 -0
- package/dist/components/ChannelList/hooks/useChannelDeletedListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useChannelDeletedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelHiddenListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useChannelHiddenListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useChannelTruncatedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useChannelUpdatedListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useChannelVisibleListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useChannelVisibleListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useMessageNewListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useMessageNewListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useNotificationAddedToChannelListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useNotificationMessageNewListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useNotificationRemovedFromChannelListener.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts +0 -1
- package/dist/components/ChannelList/hooks/usePaginatedChannels.d.ts.map +1 -1
- package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts +0 -1
- package/dist/components/ChannelList/hooks/useUserPresenceChangedListener.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.d.ts.map +1 -1
- package/dist/components/ChannelPreview/ChannelPreview.js +6 -10
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts +0 -1
- package/dist/components/ChannelPreview/ChannelPreviewMessenger.d.ts.map +1 -1
- package/dist/components/ChannelPreview/utils.d.ts +0 -1
- package/dist/components/ChannelPreview/utils.d.ts.map +1 -1
- package/dist/components/Chat/Chat.d.ts.map +1 -1
- package/dist/components/Chat/Chat.js +2 -1
- package/dist/components/Chat/hooks/useChat.d.ts +1 -1
- package/dist/components/Chat/hooks/useChat.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useChat.js +12 -7
- package/dist/components/Chat/hooks/useCreateChatContext.d.ts.map +1 -1
- package/dist/components/Chat/hooks/useCreateChatContext.js +2 -1
- package/dist/components/ChatDown/ChatDown.d.ts +5 -5
- package/dist/components/ChatDown/ChatDown.d.ts.map +1 -1
- package/dist/components/ChatDown/ChatDown.js +4 -4
- package/dist/components/ChatDown/icons.d.ts +2 -0
- package/dist/components/ChatDown/icons.d.ts.map +1 -0
- package/dist/components/ChatDown/icons.js +7 -0
- package/dist/components/DateSeparator/DateSeparator.d.ts +0 -1
- package/dist/components/DateSeparator/DateSeparator.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.d.ts +0 -1
- package/dist/components/Gallery/Gallery.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.js +11 -8
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts +2 -2
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.d.ts.map +1 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScroll.js +16 -45
- package/dist/components/InfiniteScrollPaginator/index.d.ts +0 -2
- package/dist/components/InfiniteScrollPaginator/index.d.ts.map +1 -1
- package/dist/components/InfiniteScrollPaginator/index.js +0 -2
- package/dist/components/Message/FixedHeightMessage.d.ts +0 -1
- package/dist/components/Message/FixedHeightMessage.d.ts.map +1 -1
- package/dist/components/Message/Message.d.ts +0 -1
- package/dist/components/Message/Message.d.ts.map +1 -1
- package/dist/components/Message/Message.js +8 -7
- package/dist/components/Message/MessageCommerce.d.ts +0 -1
- package/dist/components/Message/MessageCommerce.d.ts.map +1 -1
- package/dist/components/Message/MessageCommerce.js +2 -1
- package/dist/components/Message/MessageDeleted.d.ts +0 -1
- package/dist/components/Message/MessageDeleted.d.ts.map +1 -1
- package/dist/components/Message/MessageLivestream.d.ts.map +1 -1
- package/dist/components/Message/MessageLivestream.js +2 -1
- package/dist/components/Message/MessageRepliesCountButton.d.ts.map +1 -1
- package/dist/components/Message/MessageRepliesCountButton.js +10 -24
- package/dist/components/Message/MessageSimple.d.ts +0 -1
- package/dist/components/Message/MessageSimple.d.ts.map +1 -1
- package/dist/components/Message/MessageSimple.js +4 -3
- package/dist/components/Message/MessageTeam.d.ts +0 -1
- package/dist/components/Message/MessageTeam.d.ts.map +1 -1
- package/dist/components/Message/MessageText.d.ts +0 -1
- package/dist/components/Message/MessageText.d.ts.map +1 -1
- package/dist/components/Message/MessageTimestamp.d.ts +0 -1
- package/dist/components/Message/MessageTimestamp.d.ts.map +1 -1
- package/dist/components/Message/QuotedMessage.d.ts +0 -1
- package/dist/components/Message/QuotedMessage.d.ts.map +1 -1
- package/dist/components/Message/QuotedMessage.js +3 -1
- package/dist/components/Message/hooks/useEditHandler.d.ts +0 -1
- package/dist/components/Message/hooks/useEditHandler.d.ts.map +1 -1
- package/dist/components/Message/hooks/useUserHandler.d.ts +0 -1
- package/dist/components/Message/hooks/useUserHandler.d.ts.map +1 -1
- package/dist/components/Message/icons.d.ts +0 -1
- package/dist/components/Message/icons.d.ts.map +1 -1
- package/dist/components/Message/types.d.ts +2 -1
- package/dist/components/Message/types.d.ts.map +1 -1
- package/dist/components/Message/utils.d.ts.map +1 -1
- package/dist/components/Message/utils.js +3 -0
- package/dist/components/MessageActions/MessageActionsBox.d.ts +0 -1
- package/dist/components/MessageActions/MessageActionsBox.d.ts.map +1 -1
- package/dist/components/MessageInput/EditMessageForm.d.ts +0 -1
- package/dist/components/MessageInput/EditMessageForm.d.ts.map +1 -1
- package/dist/components/MessageInput/EmojiPicker.d.ts +0 -1
- package/dist/components/MessageInput/EmojiPicker.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.d.ts +0 -1
- package/dist/components/MessageInput/MessageInputFlat.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputFlat.js +25 -3
- package/dist/components/MessageInput/MessageInputSmall.d.ts +0 -1
- package/dist/components/MessageInput/MessageInputSmall.d.ts.map +1 -1
- package/dist/components/MessageInput/MessageInputSmall.js +26 -4
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts +0 -1
- package/dist/components/MessageInput/QuotedMessagePreview.d.ts.map +1 -1
- package/dist/components/MessageInput/UploadsPreview.d.ts +0 -1
- package/dist/components/MessageInput/UploadsPreview.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useAttachments.d.ts +0 -1
- package/dist/components/MessageInput/hooks/useAttachments.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useCooldownTimer.js +19 -29
- package/dist/components/MessageInput/hooks/useEmojiPicker.d.ts +0 -1
- package/dist/components/MessageInput/hooks/useEmojiPicker.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useFileUploads.d.ts +0 -1
- package/dist/components/MessageInput/hooks/useFileUploads.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useMessageInputText.d.ts +0 -1
- package/dist/components/MessageInput/hooks/useMessageInputText.d.ts.map +1 -1
- package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts +0 -1
- package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts.map +1 -1
- package/dist/components/MessageList/GiphyPreviewMessage.d.ts +0 -1
- package/dist/components/MessageList/GiphyPreviewMessage.d.ts.map +1 -1
- package/dist/components/MessageList/MessageList.d.ts +8 -3
- package/dist/components/MessageList/MessageList.d.ts.map +1 -1
- package/dist/components/MessageList/MessageList.js +90 -24
- package/dist/components/MessageList/MessageListNotifications.d.ts +1 -0
- package/dist/components/MessageList/MessageListNotifications.d.ts.map +1 -1
- package/dist/components/MessageList/MessageListNotifications.js +2 -2
- package/dist/components/MessageList/VirtualizedMessageList.d.ts +11 -1
- package/dist/components/MessageList/VirtualizedMessageList.d.ts.map +1 -1
- package/dist/components/MessageList/VirtualizedMessageList.js +118 -20
- package/dist/components/MessageList/hooks/index.d.ts +0 -1
- package/dist/components/MessageList/hooks/index.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/index.js +0 -1
- package/dist/components/MessageList/hooks/useEnrichedMessages.d.ts +0 -1
- package/dist/components/MessageList/hooks/useEnrichedMessages.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useEnrichedMessages.js +4 -4
- package/dist/components/MessageList/hooks/useGiphyPreview.d.ts +0 -1
- package/dist/components/MessageList/hooks/useGiphyPreview.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useMessageListElements.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useMessageListElements.js +6 -3
- package/dist/components/MessageList/hooks/useNewMessageNotification.d.ts +1 -2
- package/dist/components/MessageList/hooks/useNewMessageNotification.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useNewMessageNotification.js +6 -2
- package/dist/components/MessageList/hooks/usePrependMessagesCount.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/usePrependMessagesCount.js +2 -0
- package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts +2 -0
- package/dist/components/MessageList/hooks/useScrollLocationLogic.d.ts.map +1 -1
- package/dist/components/MessageList/hooks/useScrollLocationLogic.js +9 -5
- package/dist/components/MessageList/utils.d.ts +25 -6
- package/dist/components/MessageList/utils.d.ts.map +1 -1
- package/dist/components/MessageList/utils.js +57 -35
- package/dist/components/Reactions/ReactionsList.d.ts +0 -1
- package/dist/components/Reactions/ReactionsList.d.ts.map +1 -1
- package/dist/components/Reactions/utils/utils.d.ts +0 -1
- package/dist/components/Reactions/utils/utils.d.ts.map +1 -1
- package/dist/components/Thread/Thread.d.ts +2 -0
- package/dist/components/Thread/Thread.d.ts.map +1 -1
- package/dist/components/Thread/Thread.js +6 -10
- package/dist/constants/messageTypes.d.ts +5 -0
- package/dist/constants/messageTypes.d.ts.map +1 -0
- package/dist/constants/messageTypes.js +4 -0
- package/dist/context/ChannelActionContext.d.ts +3 -0
- package/dist/context/ChannelActionContext.d.ts.map +1 -1
- package/dist/context/ChannelStateContext.d.ts +5 -1
- package/dist/context/ChannelStateContext.d.ts.map +1 -1
- package/dist/context/ChatContext.d.ts +3 -0
- package/dist/context/ChatContext.d.ts.map +1 -1
- package/dist/context/MessageContext.d.ts +2 -0
- package/dist/context/MessageContext.d.ts.map +1 -1
- package/dist/context/utils/getDisplayName.d.ts +0 -1
- package/dist/context/utils/getDisplayName.d.ts.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/i18n/Streami18n.d.ts +5 -4
- package/dist/i18n/Streami18n.d.ts.map +1 -1
- package/dist/i18n/Streami18n.js +5 -5
- package/dist/i18n/de.json +29 -28
- package/dist/i18n/en.json +3 -2
- package/dist/i18n/es.json +4 -2
- package/dist/i18n/fr.json +4 -2
- package/dist/i18n/hi.json +3 -2
- package/dist/i18n/it.json +4 -2
- package/dist/i18n/ja.json +3 -2
- package/dist/i18n/ko.json +3 -2
- package/dist/i18n/nl.json +3 -2
- package/dist/i18n/pt.json +22 -20
- package/dist/i18n/ru.json +5 -2
- package/dist/i18n/tr.json +3 -2
- package/dist/index.cjs.js +552 -316
- package/dist/index.cjs.js.map +1 -1
- package/dist/scss/ActionsBox.scss +2 -2
- package/dist/scss/Attachment.scss +5 -0
- package/dist/scss/Avatar.scss +1 -1
- package/dist/scss/ChannelHeader.scss +8 -13
- package/dist/scss/ChannelList.scss +6 -0
- package/dist/scss/ChannelSearch.scss +12 -1
- package/dist/scss/Gallery.scss +19 -0
- package/dist/scss/Message.scss +110 -93
- package/dist/scss/MessageInput.scss +8 -2
- package/dist/scss/MessageInputFlat.scss +24 -0
- package/dist/scss/MessageList.scss +7 -0
- package/dist/scss/MessageNotification.scss +6 -18
- package/dist/scss/ReactionList.scss +2 -1
- package/dist/scss/ReactionSelector.scss +2 -1
- package/dist/scss/SimpleReactionsList.scss +2 -1
- package/dist/scss/SmallMessageInput.scss +34 -0
- package/dist/scss/Thread.scss +25 -5
- package/dist/scss/VirtualMessage.scss +6 -0
- package/dist/scss/_base.scss +4 -0
- package/dist/scss/_variables.scss +4 -5
- package/dist/stories/connected-user.stories.d.ts +4 -0
- package/dist/stories/connected-user.stories.d.ts.map +1 -0
- package/dist/stories/connected-user.stories.js +53 -0
- package/dist/stories/hello.stories.d.ts +3 -0
- package/dist/stories/hello.stories.d.ts.map +1 -0
- package/dist/stories/hello.stories.js +23 -0
- package/dist/stories/jump-to-message.stories.d.ts +4 -0
- package/dist/stories/jump-to-message.stories.d.ts.map +1 -0
- package/dist/stories/jump-to-message.stories.js +81 -0
- package/dist/stories/mark-read.stories.d.ts +4 -0
- package/dist/stories/mark-read.stories.d.ts.map +1 -0
- package/dist/stories/mark-read.stories.js +75 -0
- package/dist/stories/utils.d.ts +26 -0
- package/dist/stories/utils.d.ts.map +1 -0
- package/dist/stories/utils.js +38 -0
- package/dist/types/types.d.ts +17 -1
- package/dist/types/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +28 -15
- package/dist/assets/str-chat__alert.svg +0 -1
- package/dist/assets/str-chat__connection-error.svg +0 -13
- package/dist/assets/str-chat__file-file.svg +0 -20
- package/dist/assets/str-chat__icon-chevron-down.svg +0 -1
- package/dist/assets/str-chat__icon-search.svg +0 -1
- package/dist/assets/str-chat__icon-send.svg +0 -1
- package/dist/assets/str-chat__icon-sprite.png +0 -0
- package/dist/assets/str-chat__icon-sprite@1x.png +0 -0
- package/dist/assets/str-chat__icon-sprite@2x.png +0 -0
- package/dist/assets/str-chat__icon-sprite@3x.png +0 -0
- package/dist/assets/str-chat__loading-indicator.svg +0 -23
- package/dist/assets/str-chat__reactions-sprite@1x.png +0 -0
- package/dist/assets/str-chat__reactions-sprite@2x.png +0 -0
- package/dist/assets/str-chat__reactions-sprite@3x.png +0 -0
- package/dist/components/InfiniteScrollPaginator/InfiniteScrollPaginator.d.ts +0 -18
- package/dist/components/InfiniteScrollPaginator/InfiniteScrollPaginator.d.ts.map +0 -1
- package/dist/components/InfiniteScrollPaginator/InfiniteScrollPaginator.js +0 -8
- package/dist/components/InfiniteScrollPaginator/ReverseInfiniteScroll.d.ts +0 -4
- package/dist/components/InfiniteScrollPaginator/ReverseInfiniteScroll.d.ts.map +0 -1
- package/dist/components/InfiniteScrollPaginator/ReverseInfiniteScroll.js +0 -14
- package/dist/components/MessageList/hooks/useCallLoadMore.d.ts +0 -3
- package/dist/components/MessageList/hooks/useCallLoadMore.d.ts.map +0 -1
- package/dist/components/MessageList/hooks/useCallLoadMore.js +0 -8
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
|
|
42
42
|
.dark.str-chat {
|
|
43
43
|
.str-chat__message-actions-box {
|
|
44
|
-
background: var(--grey);
|
|
45
|
-
background-image: linear-gradient(-180deg, var(--
|
|
44
|
+
background: var(--dark-grey);
|
|
45
|
+
background-image: linear-gradient(-180deg, var(--dark-grey), var(--black20));
|
|
46
46
|
box-shadow: 0 0 2px 0 var(--border), 0 1px 0 0 var(--border), 0 1px 8px 0 var(--border);
|
|
47
47
|
|
|
48
48
|
button {
|
package/dist/scss/Avatar.scss
CHANGED
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
.str-chat {
|
|
134
134
|
&__header-livestream {
|
|
135
135
|
position: relative;
|
|
136
|
-
z-index:
|
|
136
|
+
z-index: 2;
|
|
137
137
|
border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
|
|
138
138
|
background: var(--white-snow);
|
|
139
139
|
box-shadow: 0 7px 9px 0 var(--border), 0 1px 0 0 var(--border);
|
|
@@ -263,16 +263,18 @@
|
|
|
263
263
|
.str-chat__header-hamburger {
|
|
264
264
|
width: 30px;
|
|
265
265
|
height: 38px;
|
|
266
|
-
padding: var(--
|
|
266
|
+
padding: var(--xxs-p);
|
|
267
267
|
margin-right: var(--xs-m);
|
|
268
268
|
display: none;
|
|
269
|
-
|
|
270
|
-
justify-content:
|
|
269
|
+
align-items: center;
|
|
270
|
+
justify-content: center;
|
|
271
271
|
cursor: pointer;
|
|
272
|
+
border: none;
|
|
273
|
+
background: transparent;
|
|
272
274
|
|
|
273
275
|
&:hover {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
+
svg path {
|
|
277
|
+
fill: var(--primary-color);
|
|
276
278
|
}
|
|
277
279
|
}
|
|
278
280
|
|
|
@@ -280,10 +282,3 @@
|
|
|
280
282
|
display: flex;
|
|
281
283
|
}
|
|
282
284
|
}
|
|
283
|
-
|
|
284
|
-
.str-chat__header-hamburger--line {
|
|
285
|
-
width: 100%;
|
|
286
|
-
height: 2px;
|
|
287
|
-
background: var(--primary-color);
|
|
288
|
-
border-radius: var(--border-radius-sm);
|
|
289
|
-
}
|
|
@@ -102,10 +102,21 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.dark.str-chat {
|
|
105
|
-
.str-chat__channel-search
|
|
105
|
+
.str-chat__channel-search,
|
|
106
|
+
.str-chat__channel-search-container.inline {
|
|
107
|
+
background: var(--dark-grey);
|
|
108
|
+
color: var(--white);
|
|
109
|
+
|
|
106
110
|
input {
|
|
107
111
|
background: var(--grey-gainsboro);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.str-chat__channel-search-result {
|
|
108
115
|
color: var(--white);
|
|
116
|
+
|
|
117
|
+
&:hover {
|
|
118
|
+
background: var(--white5);
|
|
119
|
+
}
|
|
109
120
|
}
|
|
110
121
|
}
|
|
111
122
|
}
|
package/dist/scss/Gallery.scss
CHANGED
|
@@ -37,6 +37,25 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
.stream-chat-angular__image-modal {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
align-items: center;
|
|
44
|
+
|
|
45
|
+
&-stepper {
|
|
46
|
+
padding: 10px;
|
|
47
|
+
border: none;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
background: transparent;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&-image {
|
|
53
|
+
object-fit: cover;
|
|
54
|
+
max-width: 90%;
|
|
55
|
+
max-height: 90%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
40
59
|
.livestream.str-chat,
|
|
41
60
|
.messaging.str-chat,
|
|
42
61
|
.commerce.str-chat,
|
package/dist/scss/Message.scss
CHANGED
|
@@ -2,10 +2,20 @@
|
|
|
2
2
|
display: block;
|
|
3
3
|
position: relative;
|
|
4
4
|
|
|
5
|
+
/*
|
|
6
|
+
min-width in a flex context: While the default min-width value is 0, for flex items it is auto.
|
|
7
|
+
This can make block elements take up much more space than desired, resulting in overflow.
|
|
8
|
+
*/
|
|
9
|
+
.str-chat__message-inner {
|
|
10
|
+
min-width: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
5
13
|
.quoted-message {
|
|
6
14
|
display: flex;
|
|
7
15
|
align-items: flex-end;
|
|
8
16
|
margin-bottom: var(--xxs-m);
|
|
17
|
+
/** clicking on the quoted message navigates to its original location in the message list*/
|
|
18
|
+
cursor: pointer;
|
|
9
19
|
|
|
10
20
|
&-inner {
|
|
11
21
|
display: flex;
|
|
@@ -61,15 +71,13 @@
|
|
|
61
71
|
&-attachment--img,
|
|
62
72
|
&-attachment-card,
|
|
63
73
|
.str-chat__gallery {
|
|
64
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
65
|
-
calc(var(--border-radius-sm) / 2);
|
|
74
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
69
78
|
.str-chat__message-attachment--img,
|
|
70
79
|
.str-chat__message-attachment-card {
|
|
71
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
72
|
-
calc(var(--border-radius-sm) / 2);
|
|
80
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
73
81
|
}
|
|
74
82
|
}
|
|
75
83
|
|
|
@@ -78,28 +86,24 @@
|
|
|
78
86
|
.str-chat__message {
|
|
79
87
|
&-attachment--img,
|
|
80
88
|
&-attachment-card {
|
|
81
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
82
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
89
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
83
90
|
}
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
87
94
|
.str-chat__message-attachment--img,
|
|
88
95
|
.str-chat__message-attachment-card {
|
|
89
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
90
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
96
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
91
97
|
}
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
.str-chat__gallery {
|
|
95
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
96
|
-
var(--border-radius);
|
|
101
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
97
102
|
}
|
|
98
103
|
|
|
99
104
|
&.str-chat__message--has-text {
|
|
100
105
|
.str-chat__gallery {
|
|
101
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
102
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
106
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
103
107
|
}
|
|
104
108
|
}
|
|
105
109
|
}
|
|
@@ -113,16 +117,14 @@
|
|
|
113
117
|
&-attachment--img,
|
|
114
118
|
&-attachment-card,
|
|
115
119
|
.str-chat__gallery {
|
|
116
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
117
|
-
calc(var(--border-radius-sm) / 2);
|
|
120
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
121
124
|
.str-chat__message-attachment--img,
|
|
122
125
|
.str-chat__message-attachment-card,
|
|
123
126
|
.str-chat__gallery {
|
|
124
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
125
|
-
calc(var(--border-radius-sm) / 2);
|
|
127
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
|
|
@@ -131,8 +133,7 @@
|
|
|
131
133
|
&-attachment--img,
|
|
132
134
|
&-attachment-card,
|
|
133
135
|
.str-chat__gallery {
|
|
134
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
135
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
136
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
|
|
@@ -154,16 +155,14 @@
|
|
|
154
155
|
&-attachment--img,
|
|
155
156
|
&-attachment-card,
|
|
156
157
|
.str-chat__gallery {
|
|
157
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
158
|
-
calc(var(--border-radius-sm) / 2);
|
|
158
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
&.str-chat__message--has-text.str-chat__message--has-attachment {
|
|
162
162
|
.str-chat__message-attachment--img,
|
|
163
163
|
.str-chat__message-attachment-card,
|
|
164
164
|
.str-chat__gallery {
|
|
165
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
166
|
-
calc(var(--border-radius-sm) / 2);
|
|
165
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
167
166
|
}
|
|
168
167
|
}
|
|
169
168
|
|
|
@@ -172,8 +171,7 @@
|
|
|
172
171
|
&-attachment--img,
|
|
173
172
|
&-attachment-card,
|
|
174
173
|
.str-chat__gallery {
|
|
175
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
176
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
174
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
177
175
|
}
|
|
178
176
|
}
|
|
179
177
|
|
|
@@ -205,16 +203,14 @@
|
|
|
205
203
|
.str-chat__message {
|
|
206
204
|
&-text {
|
|
207
205
|
&-inner {
|
|
208
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
209
|
-
calc(var(--border-radius-sm) / 2);
|
|
206
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
210
207
|
}
|
|
211
208
|
}
|
|
212
209
|
|
|
213
210
|
&--me {
|
|
214
211
|
.str-chat__message-text {
|
|
215
212
|
&-inner {
|
|
216
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
217
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
213
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
218
214
|
}
|
|
219
215
|
}
|
|
220
216
|
}
|
|
@@ -225,12 +221,10 @@
|
|
|
225
221
|
.str-chat__message {
|
|
226
222
|
&-text {
|
|
227
223
|
&-inner {
|
|
228
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
229
|
-
calc(var(--border-radius-sm) / 2);
|
|
224
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
230
225
|
|
|
231
226
|
&--has-attachment {
|
|
232
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius)
|
|
233
|
-
var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
227
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
234
228
|
}
|
|
235
229
|
}
|
|
236
230
|
}
|
|
@@ -238,12 +232,10 @@
|
|
|
238
232
|
&--me {
|
|
239
233
|
.str-chat__message-text {
|
|
240
234
|
&-inner {
|
|
241
|
-
border-radius: var(--border-radius) var(--border-radius)
|
|
242
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
235
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
243
236
|
|
|
244
237
|
&--has-attachment {
|
|
245
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
246
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
238
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
247
239
|
}
|
|
248
240
|
}
|
|
249
241
|
}
|
|
@@ -256,16 +248,14 @@
|
|
|
256
248
|
.str-chat__message {
|
|
257
249
|
&-text {
|
|
258
250
|
&-inner {
|
|
259
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
260
|
-
calc(var(--border-radius-sm) / 2);
|
|
251
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
261
252
|
}
|
|
262
253
|
}
|
|
263
254
|
|
|
264
255
|
&--me {
|
|
265
256
|
.str-chat__message-text {
|
|
266
257
|
&-inner {
|
|
267
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
268
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
258
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
269
259
|
|
|
270
260
|
&--has-attachment {
|
|
271
261
|
margin: 0;
|
|
@@ -276,8 +266,7 @@
|
|
|
276
266
|
.str-chat__message-attachment-card {
|
|
277
267
|
margin: 0;
|
|
278
268
|
padding: 0;
|
|
279
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
280
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
269
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
281
270
|
}
|
|
282
271
|
}
|
|
283
272
|
}
|
|
@@ -293,6 +282,7 @@
|
|
|
293
282
|
position: relative;
|
|
294
283
|
margin: calc(var(--xxs-m) / 2) 0;
|
|
295
284
|
width: 100%;
|
|
285
|
+
transition: background-color 0.5s ease-out;
|
|
296
286
|
|
|
297
287
|
&--system {
|
|
298
288
|
text-align: center;
|
|
@@ -370,13 +360,16 @@
|
|
|
370
360
|
border: 1px solid var(--border);
|
|
371
361
|
margin-left: 0; /* set spacing when unfocused */
|
|
372
362
|
|
|
363
|
+
// Fixes emoji display in Chrome https://bugs.chromium.org/p/chromium/issues/detail?id=596223
|
|
364
|
+
.str-chat__emoji-display-fix {
|
|
365
|
+
display: inline-block;
|
|
366
|
+
width: 1.25em;
|
|
367
|
+
}
|
|
368
|
+
|
|
373
369
|
p {
|
|
374
|
-
/* Make sure really long urls and words don't break out
|
|
375
|
-
** https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/ */
|
|
376
|
-
overflow-wrap: break-word;
|
|
370
|
+
/* Make sure really long urls and words don't break out.*/
|
|
377
371
|
word-wrap: break-word;
|
|
378
|
-
|
|
379
|
-
text-overflow: ellipsis;
|
|
372
|
+
word-break: break-word;
|
|
380
373
|
|
|
381
374
|
/* Adds a hyphen where the word breaks, if supported (No Blink) */
|
|
382
375
|
-ms-hyphens: auto;
|
|
@@ -394,8 +387,7 @@
|
|
|
394
387
|
}
|
|
395
388
|
|
|
396
389
|
&--has-attachment {
|
|
397
|
-
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius)
|
|
398
|
-
calc(var(--border-radius-sm) / 2);
|
|
390
|
+
border-radius: calc(var(--border-radius-sm) / 2) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
399
391
|
}
|
|
400
392
|
|
|
401
393
|
/* if text consists of just one emoji */
|
|
@@ -485,8 +477,7 @@
|
|
|
485
477
|
background: var(--grey-whisper);
|
|
486
478
|
border-color: transparent;
|
|
487
479
|
text-align: right;
|
|
488
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
489
|
-
var(--border-radius);
|
|
480
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
490
481
|
margin-right: 0; /* set spacing when unfocused */
|
|
491
482
|
|
|
492
483
|
&--focused {
|
|
@@ -497,8 +488,7 @@
|
|
|
497
488
|
}
|
|
498
489
|
|
|
499
490
|
&--has-attachment {
|
|
500
|
-
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
501
|
-
calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
491
|
+
border-radius: var(--border-radius) calc(var(--border-radius-sm) / 2) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
502
492
|
}
|
|
503
493
|
|
|
504
494
|
&--is-emoji {
|
|
@@ -537,6 +527,11 @@
|
|
|
537
527
|
margin-top: var(--md-m);
|
|
538
528
|
}
|
|
539
529
|
|
|
530
|
+
&--highlighted {
|
|
531
|
+
transition: background-color 0.1s ease-out;
|
|
532
|
+
background-color: var(--highlight);
|
|
533
|
+
}
|
|
534
|
+
|
|
540
535
|
&-link {
|
|
541
536
|
color: var(--primary-color);
|
|
542
537
|
font-weight: var(--font-weight-bold);
|
|
@@ -547,13 +542,6 @@
|
|
|
547
542
|
font-weight: var(--font-weight-bold);
|
|
548
543
|
}
|
|
549
544
|
|
|
550
|
-
&-url-link {
|
|
551
|
-
max-width: 150px;
|
|
552
|
-
text-overflow: ellipsis;
|
|
553
|
-
overflow: hidden;
|
|
554
|
-
white-space: nowrap;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
545
|
&--inner {
|
|
558
546
|
display: flex;
|
|
559
547
|
flex-direction: column;
|
|
@@ -613,7 +601,9 @@
|
|
|
613
601
|
}
|
|
614
602
|
}
|
|
615
603
|
}
|
|
616
|
-
}
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/* __li*/
|
|
617
607
|
}
|
|
618
608
|
}
|
|
619
609
|
}
|
|
@@ -651,7 +641,6 @@
|
|
|
651
641
|
/* error messages */
|
|
652
642
|
&--error,
|
|
653
643
|
&--failed {
|
|
654
|
-
margin: 0 0 var(--lg-m) var(--xl-m);
|
|
655
644
|
font-size: var(--sm-font);
|
|
656
645
|
padding: var(--xxs-p) 0;
|
|
657
646
|
|
|
@@ -747,6 +736,8 @@
|
|
|
747
736
|
flex: initial;
|
|
748
737
|
text-align: left;
|
|
749
738
|
max-width: 460px;
|
|
739
|
+
word-wrap: break-word;
|
|
740
|
+
word-break: break-word;
|
|
750
741
|
|
|
751
742
|
&.str-chat__message-simple-text-inner--is-emoji {
|
|
752
743
|
background: transparent;
|
|
@@ -764,6 +755,12 @@
|
|
|
764
755
|
color: var(--primary-color);
|
|
765
756
|
font-weight: var(--font-weight-bold);
|
|
766
757
|
text-decoration: none;
|
|
758
|
+
|
|
759
|
+
&:active,
|
|
760
|
+
&:focus,
|
|
761
|
+
&:hover {
|
|
762
|
+
text-decoration: underline;
|
|
763
|
+
}
|
|
767
764
|
}
|
|
768
765
|
|
|
769
766
|
blockquote {
|
|
@@ -784,6 +781,12 @@
|
|
|
784
781
|
}
|
|
785
782
|
}
|
|
786
783
|
|
|
784
|
+
&--deleted-inner {
|
|
785
|
+
background: var(--dark-grey);
|
|
786
|
+
color: var(--white);
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
|
|
787
790
|
&--me {
|
|
788
791
|
.str-chat__message-simple-reply-button {
|
|
789
792
|
display: flex;
|
|
@@ -952,8 +955,7 @@
|
|
|
952
955
|
&:first-of-type {
|
|
953
956
|
border-bottom: 1px solid var(--grey-gainsboro);
|
|
954
957
|
border-top: 1px solid var(--grey-gainsboro);
|
|
955
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
956
|
-
calc(var(--border-radius-sm) / 2);
|
|
958
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
957
959
|
}
|
|
958
960
|
}
|
|
959
961
|
}
|
|
@@ -964,8 +966,7 @@
|
|
|
964
966
|
|
|
965
967
|
&--me {
|
|
966
968
|
.str-chat__message-attachment-card {
|
|
967
|
-
border-radius: var(--border-radius) var(--border-radius-sm) var(--border-radius-sm)
|
|
968
|
-
var(--border-radius-sm);
|
|
969
|
+
border-radius: var(--border-radius) var(--border-radius-sm) var(--border-radius-sm) var(--border-radius-sm);
|
|
969
970
|
}
|
|
970
971
|
|
|
971
972
|
.str-chat__message-attachment--file {
|
|
@@ -975,8 +976,7 @@
|
|
|
975
976
|
border-radius: 0 0 calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
976
977
|
|
|
977
978
|
&:first-of-type:not(.str-chat-angular__message-attachment-file-single) {
|
|
978
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
979
|
-
var(--border-radius);
|
|
979
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
}
|
|
@@ -993,11 +993,12 @@
|
|
|
993
993
|
.str-chat__message-actions-box {
|
|
994
994
|
right: unset;
|
|
995
995
|
left: 100%;
|
|
996
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
997
|
-
calc(var(--border-radius-sm) / 2);
|
|
996
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
998
997
|
}
|
|
999
998
|
}
|
|
1000
999
|
}
|
|
1000
|
+
|
|
1001
|
+
|
|
1001
1002
|
}
|
|
1002
1003
|
|
|
1003
1004
|
.livestream.str-chat {
|
|
@@ -1027,14 +1028,19 @@
|
|
|
1027
1028
|
}
|
|
1028
1029
|
|
|
1029
1030
|
.dark.str-chat {
|
|
1031
|
+
.str-chat__message,
|
|
1030
1032
|
.str-chat__message-simple {
|
|
1031
1033
|
&-text-inner {
|
|
1032
|
-
background: var(--
|
|
1034
|
+
background: var(--dark-grey);
|
|
1033
1035
|
color: var(--white);
|
|
1034
1036
|
|
|
1035
1037
|
&--is-emoji {
|
|
1036
1038
|
background: transparent;
|
|
1037
1039
|
}
|
|
1040
|
+
|
|
1041
|
+
.quoted-message-inner {
|
|
1042
|
+
background: var(--dark-grey);
|
|
1043
|
+
}
|
|
1038
1044
|
}
|
|
1039
1045
|
|
|
1040
1046
|
&__actions {
|
|
@@ -1052,17 +1058,22 @@
|
|
|
1052
1058
|
background: transparent;
|
|
1053
1059
|
|
|
1054
1060
|
&--content {
|
|
1055
|
-
background: var(--
|
|
1061
|
+
background: var(--dark-grey);
|
|
1056
1062
|
}
|
|
1057
1063
|
|
|
1058
1064
|
&--url {
|
|
1059
1065
|
color: var(--grey-gainsboro);
|
|
1060
1066
|
}
|
|
1067
|
+
|
|
1068
|
+
&--title {
|
|
1069
|
+
color: var(--primary-color);
|
|
1070
|
+
}
|
|
1061
1071
|
}
|
|
1062
1072
|
|
|
1063
1073
|
.str-chat__message-attachment--file {
|
|
1064
1074
|
border-color: transparent;
|
|
1065
|
-
background: var(--
|
|
1075
|
+
background: var(--dark-grey);
|
|
1076
|
+
color: var(--white10);
|
|
1066
1077
|
|
|
1067
1078
|
a,
|
|
1068
1079
|
span {
|
|
@@ -1080,25 +1091,35 @@
|
|
|
1080
1091
|
}
|
|
1081
1092
|
}
|
|
1082
1093
|
|
|
1094
|
+
.str-chat__message-simple--deleted-inner,
|
|
1095
|
+
.str-chat__message--deleted-inner {
|
|
1096
|
+
background: var(--dark-grey);
|
|
1097
|
+
color: var(--white);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1083
1100
|
&--me {
|
|
1084
|
-
.str-chat__message-
|
|
1085
|
-
|
|
1086
|
-
background: var(--black);
|
|
1101
|
+
.str-chat__message-text-inner {
|
|
1102
|
+
background: var(--black40);
|
|
1087
1103
|
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1104
|
+
&--is-emoji {
|
|
1105
|
+
background: transparent;
|
|
1091
1106
|
}
|
|
1107
|
+
}
|
|
1092
1108
|
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
}
|
|
1109
|
+
.str-chat__message-attachment-card {
|
|
1110
|
+
&--content {
|
|
1111
|
+
background: var(--black40);
|
|
1097
1112
|
}
|
|
1113
|
+
}
|
|
1098
1114
|
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1115
|
+
.str-chat__message-attachment--file {
|
|
1116
|
+
background: var(--black40);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
.str-chat__message-simple--deleted-inner,
|
|
1120
|
+
.str-chat__message--deleted-inner {
|
|
1121
|
+
background: var(--black40);
|
|
1122
|
+
color: var(--white);
|
|
1102
1123
|
}
|
|
1103
1124
|
}
|
|
1104
1125
|
}
|
|
@@ -1130,22 +1151,19 @@
|
|
|
1130
1151
|
&--reverse {
|
|
1131
1152
|
right: 100%;
|
|
1132
1153
|
left: unset;
|
|
1133
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
1134
|
-
var(--border-radius);
|
|
1154
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
1135
1155
|
}
|
|
1136
1156
|
}
|
|
1137
1157
|
|
|
1138
1158
|
.str-chat__message-actions-box--mine {
|
|
1139
1159
|
right: 100%;
|
|
1140
1160
|
left: unset;
|
|
1141
|
-
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2)
|
|
1142
|
-
var(--border-radius);
|
|
1161
|
+
border-radius: var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2) var(--border-radius);
|
|
1143
1162
|
|
|
1144
1163
|
&.str-chat__message-actions-box--reverse {
|
|
1145
1164
|
left: 100%;
|
|
1146
1165
|
right: unset;
|
|
1147
|
-
border-radius: var(--border-radius) var(--border-radius) var(--border-radius)
|
|
1148
|
-
calc(var(--border-radius-sm) / 2);
|
|
1166
|
+
border-radius: var(--border-radius) var(--border-radius) var(--border-radius) calc(var(--border-radius-sm) / 2);
|
|
1149
1167
|
}
|
|
1150
1168
|
}
|
|
1151
1169
|
}
|
|
@@ -1189,7 +1207,6 @@
|
|
|
1189
1207
|
// fixes the overall overflow/flex issues together with the rule above
|
|
1190
1208
|
.mml-wrap {
|
|
1191
1209
|
display: block;
|
|
1192
|
-
max-width: none;
|
|
1193
1210
|
// the max-width should match that to .str-chat__message-XXXX-text-inner
|
|
1194
1211
|
max-width: 345px;
|
|
1195
1212
|
|
|
@@ -82,6 +82,12 @@
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
.dark .str-chat__textarea {
|
|
86
|
+
textarea::placeholder {
|
|
87
|
+
color: var(--white30);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
85
91
|
.str-chat__textarea {
|
|
86
92
|
height: auto;
|
|
87
93
|
flex: 1;
|
|
@@ -104,7 +110,7 @@
|
|
|
104
110
|
box-shadow: 0 0 0 2px var(--primary-color-faded);
|
|
105
111
|
}
|
|
106
112
|
|
|
107
|
-
|
|
113
|
+
&::placeholder {
|
|
108
114
|
color: var(--black50);
|
|
109
115
|
}
|
|
110
116
|
}
|
|
@@ -117,7 +123,7 @@
|
|
|
117
123
|
position: absolute;
|
|
118
124
|
background: var(--white95);
|
|
119
125
|
box-shadow: 0 0 1px 0 var(--black30), 0 0 6px 0 var(--black10);
|
|
120
|
-
z-index:
|
|
126
|
+
z-index: 10001;
|
|
121
127
|
border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
|
|
122
128
|
margin: 0 var(--xs-m);
|
|
123
129
|
max-height: 360px;
|