@weavy/uikit-react 13.0.0 → 14.0.1
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/changelog.md +30 -0
- package/dist/cjs/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Chat.d.ts +1 -1
- package/dist/cjs/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/cjs/{types/components → components}/File.d.ts +0 -0
- package/dist/cjs/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Image.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/cjs/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Message.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Messages.d.ts +3 -1
- package/dist/cjs/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/cjs/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Presence.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Preview.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Typing.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/cjs/hooks/useConversations.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{esm/types → cjs}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/cjs/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/cjs/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/cjs/index.js +6 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/cjs/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/cjs/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{esm/types → cjs}/types/Message.d.ts +2 -0
- package/dist/cjs/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/cjs/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/cjs/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/cjs/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/css/weavy-chat.css +1543 -959
- package/dist/css/weavy-messenger.css +1903 -1302
- package/dist/css/weavy.css +1703 -1102
- package/dist/esm/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/esm/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/esm/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Chat.d.ts +1 -1
- package/dist/esm/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/esm/{types/components → components}/File.d.ts +0 -0
- package/dist/esm/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/esm/{types/components → components}/Image.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/esm/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/esm/{types/components → components}/Message.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Messages.d.ts +3 -1
- package/dist/esm/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/esm/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/esm/{types/components → components}/Presence.d.ts +0 -0
- package/dist/esm/{types/components → components}/Preview.d.ts +0 -0
- package/dist/esm/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/esm/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/esm/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/esm/{types/components → components}/Typing.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/esm/hooks/useConversations.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{cjs/types → esm}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/esm/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/esm/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/esm/index.js +6 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/esm/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/esm/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{cjs/types → esm}/types/Message.d.ts +2 -0
- package/dist/esm/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/esm/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/esm/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/esm/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/index.d.ts +2 -1
- package/package.json +18 -15
- package/{rollup.config.js → rollup.config.mjs} +10 -3
- package/src/client/WeavyClient.ts +12 -17
- package/src/components/Attachment.tsx +5 -5
- package/src/components/Chat.tsx +6 -5
- package/src/components/Conversation.tsx +26 -20
- package/src/components/ConversationBadge.tsx +7 -5
- package/src/components/ConversationForm.tsx +1 -1
- package/src/components/ConversationList.tsx +59 -11
- package/src/components/ConversationListItem.tsx +94 -58
- package/src/components/FileBrowser.tsx +53 -50
- package/src/components/Image.tsx +2 -1
- package/src/components/MeetingCard.tsx +35 -13
- package/src/components/Meetings.tsx +1 -1
- package/src/components/Message.tsx +41 -42
- package/src/components/Messages.tsx +61 -60
- package/src/components/Messenger.tsx +7 -2
- package/src/components/NewConversation.tsx +1 -1
- package/src/components/PdfViewer.tsx +5 -5
- package/src/components/Preview.tsx +2 -2
- package/src/components/Reactions.tsx +11 -5
- package/src/components/SearchUsers.tsx +19 -9
- package/src/components/SeenBy.tsx +13 -7
- package/src/components/Typing.tsx +11 -12
- package/src/contexts/UserContext.tsx +1 -1
- package/src/contexts/WeavyContext.tsx +3 -3
- package/src/hooks/useConversations.ts +15 -5
- package/src/hooks/useMutateMessage.ts +1 -5
- package/src/hooks/useMutateRead.ts +5 -3
- package/src/hooks/usePresence.ts +2 -3
- package/src/hooks/useReactions.ts +11 -12
- package/src/scss/theme/_alert.scss +61 -63
- package/src/scss/theme/_appbar.scss +105 -30
- package/src/scss/theme/_avatar.scss +23 -28
- package/src/scss/theme/_badge.scss +26 -18
- package/src/scss/theme/_buttons.scss +107 -52
- package/src/scss/theme/_card.scss +102 -4
- package/src/scss/theme/_checkbox.scss +16 -20
- package/src/scss/theme/_code-vscode-dark.scss +3 -3
- package/src/scss/theme/_code-vscode-light.scss +3 -3
- package/src/scss/theme/_code.scss +0 -2
- package/src/scss/theme/_comment-editor-cm.scss +97 -0
- package/src/scss/theme/_comment-editor.scss +129 -0
- package/src/scss/theme/_comments.scss +66 -0
- package/src/scss/theme/_content.scss +33 -5
- package/src/scss/theme/_conversations.scss +19 -78
- package/src/scss/theme/_dropdown.scss +102 -15
- package/src/scss/theme/_embed.scss +135 -0
- package/src/scss/theme/_facepile.scss +11 -0
- package/src/scss/theme/_filebrowser.scss +1 -1
- package/src/scss/theme/_files.scss +76 -47
- package/src/scss/theme/_grid.scss +8 -0
- package/src/scss/theme/_icons.scss +155 -19
- package/src/scss/theme/_image-grid.scss +7 -12
- package/src/scss/theme/_input.scss +160 -0
- package/src/scss/theme/_item.scss +169 -0
- package/src/scss/theme/_list.scss +57 -0
- package/src/scss/theme/_meeting.scss +11 -0
- package/src/scss/theme/_message-editor-cm.scss +95 -0
- package/src/scss/theme/_message-editor.scss +65 -19
- package/src/scss/theme/_messages.scss +51 -105
- package/src/scss/theme/_meta.scss +12 -0
- package/src/scss/theme/_overlays.scss +31 -76
- package/src/scss/theme/_pager.scss +5 -1
- package/src/scss/theme/_pane.scss +13 -2
- package/src/scss/theme/_panels.scss +33 -28
- package/src/scss/theme/_picker-list.scss +5 -3
- package/src/scss/theme/_placeholder.scss +19 -0
- package/src/scss/theme/_poll.scss +49 -0
- package/src/scss/theme/_post-editor-cm.scss +100 -0
- package/src/scss/theme/_post-editor.scss +127 -0
- package/src/scss/theme/_post.scss +83 -0
- package/src/scss/theme/_preview-code.scss +11 -2
- package/src/scss/theme/_preview-embed.scss +8 -2
- package/src/scss/theme/_preview-image.scss +8 -26
- package/src/scss/theme/_preview-media.scss +1 -0
- package/src/scss/theme/_preview-pdf.scss +10 -15
- package/src/scss/theme/_preview.scss +57 -79
- package/src/scss/theme/_reactions.scss +48 -17
- package/src/scss/theme/_sheet.scss +59 -0
- package/src/scss/theme/_sidebar.scss +86 -0
- package/src/scss/theme/_spinner.scss +11 -7
- package/src/scss/theme/_tab.scss +72 -0
- package/src/scss/theme/_tables.scss +70 -23
- package/src/scss/theme/_toasts.scss +56 -26
- package/src/scss/theme/_type.scss +41 -0
- package/src/scss/theme/{mixins → base}/_backdrop.scss +0 -0
- package/src/scss/theme/{bootstrap/mixins → base}/_breakpoints.scss +9 -0
- package/src/scss/theme/base/_colors.scss +315 -0
- package/src/scss/theme/base/_md.scss +19 -0
- package/src/scss/theme/base/_palette.scss +130 -0
- package/src/scss/theme/{mixins → base}/_position.scss +5 -5
- package/src/scss/theme/base/_reboot.scss +51 -0
- package/src/scss/theme/base/_scroll.scss +180 -0
- package/src/scss/theme/base/_svg.scss +49 -0
- package/src/scss/theme/base/_text.scss +23 -0
- package/src/scss/theme/base/_vars.scss +203 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-roboto.scss +0 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-segoe-ui.scss +0 -0
- package/src/scss/theme/base/fonts/_index.scss +2 -0
- package/src/scss/weavy-chat.scss +10 -4
- package/src/scss/weavy-messenger.scss +37 -21
- package/src/types/Chat.ts +2 -1
- package/src/types/Message.ts +3 -1
- package/src/types/types.ts +56 -5
- package/src/ui/Icon.tsx +1 -1
- package/src/ui/Spinner.tsx +3 -2
- package/src/utils/infiniteScroll.js +12 -3
- package/src/utils/postal-parent.js +398 -0
- package/src/utils/promise.js +187 -0
- package/src/utils/scrollbarDetection.js +71 -9
- package/src/utils/utils.js +547 -0
- package/dist/cjs/types/hooks/useConversations.d.ts +0 -1
- package/dist/esm/types/hooks/useConversations.d.ts +0 -1
- package/src/scss/theme/_attachments.scss +0 -74
- package/src/scss/theme/_cm-editor.scss +0 -42
- package/src/scss/theme/_colors.scss +0 -520
- package/src/scss/theme/_config.scss +0 -6
- package/src/scss/theme/_inputs.scss +0 -28
- package/src/scss/theme/_nav.scss +0 -52
- package/src/scss/theme/_palette.scss +0 -165
- package/src/scss/theme/_preview-icon.scss +0 -41
- package/src/scss/theme/_reboot.scss +0 -41
- package/src/scss/theme/_root.scss +0 -2
- package/src/scss/theme/_scroll.scss +0 -55
- package/src/scss/theme/_search.scss +0 -68
- package/src/scss/theme/_turbo.scss +0 -17
- package/src/scss/theme/_variables.scss +0 -139
- package/src/scss/theme/bootstrap/_accordion.scss +0 -146
- package/src/scss/theme/bootstrap/_alert.scss +0 -71
- package/src/scss/theme/bootstrap/_badge.scss +0 -38
- package/src/scss/theme/bootstrap/_breadcrumb.scss +0 -40
- package/src/scss/theme/bootstrap/_button-group.scss +0 -142
- package/src/scss/theme/bootstrap/_buttons.scss +0 -186
- package/src/scss/theme/bootstrap/_card.scss +0 -234
- package/src/scss/theme/bootstrap/_carousel.scss +0 -229
- package/src/scss/theme/bootstrap/_close.scss +0 -40
- package/src/scss/theme/bootstrap/_containers.scss +0 -41
- package/src/scss/theme/bootstrap/_dropdown.scss +0 -248
- package/src/scss/theme/bootstrap/_forms.scss +0 -9
- package/src/scss/theme/bootstrap/_functions.scss +0 -302
- package/src/scss/theme/bootstrap/_grid.scss +0 -33
- package/src/scss/theme/bootstrap/_helpers.scss +0 -10
- package/src/scss/theme/bootstrap/_images.scss +0 -42
- package/src/scss/theme/bootstrap/_list-group.scss +0 -191
- package/src/scss/theme/bootstrap/_maps.scss +0 -54
- package/src/scss/theme/bootstrap/_mixins.scss +0 -43
- package/src/scss/theme/bootstrap/_modal.scss +0 -237
- package/src/scss/theme/bootstrap/_nav.scss +0 -172
- package/src/scss/theme/bootstrap/_navbar.scss +0 -276
- package/src/scss/theme/bootstrap/_offcanvas.scss +0 -143
- package/src/scss/theme/bootstrap/_pagination.scss +0 -109
- package/src/scss/theme/bootstrap/_placeholders.scss +0 -51
- package/src/scss/theme/bootstrap/_popover.scss +0 -196
- package/src/scss/theme/bootstrap/_progress.scss +0 -59
- package/src/scss/theme/bootstrap/_reboot.scss +0 -610
- package/src/scss/theme/bootstrap/_root.scss +0 -73
- package/src/scss/theme/bootstrap/_spinners.scss +0 -85
- package/src/scss/theme/bootstrap/_tables.scss +0 -164
- package/src/scss/theme/bootstrap/_toasts.scss +0 -70
- package/src/scss/theme/bootstrap/_tooltip.scss +0 -120
- package/src/scss/theme/bootstrap/_transitions.scss +0 -27
- package/src/scss/theme/bootstrap/_type.scss +0 -106
- package/src/scss/theme/bootstrap/_utilities.scss +0 -647
- package/src/scss/theme/bootstrap/_variables.scss +0 -1633
- package/src/scss/theme/bootstrap/forms/_floating-labels.scss +0 -74
- package/src/scss/theme/bootstrap/forms/_form-check.scss +0 -175
- package/src/scss/theme/bootstrap/forms/_form-control.scss +0 -194
- package/src/scss/theme/bootstrap/forms/_form-range.scss +0 -91
- package/src/scss/theme/bootstrap/forms/_form-select.scss +0 -71
- package/src/scss/theme/bootstrap/forms/_form-text.scss +0 -11
- package/src/scss/theme/bootstrap/forms/_input-group.scss +0 -129
- package/src/scss/theme/bootstrap/forms/_labels.scss +0 -36
- package/src/scss/theme/bootstrap/forms/_validation.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_clearfix.scss +0 -3
- package/src/scss/theme/bootstrap/helpers/_color-bg.scss +0 -10
- package/src/scss/theme/bootstrap/helpers/_colored-links.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_position.scss +0 -36
- package/src/scss/theme/bootstrap/helpers/_ratio.scss +0 -26
- package/src/scss/theme/bootstrap/helpers/_stacks.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +0 -7
- package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +0 -8
- package/src/scss/theme/bootstrap/helpers/_vr.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_alert.scss +0 -15
- package/src/scss/theme/bootstrap/mixins/_backdrop.scss +0 -14
- package/src/scss/theme/bootstrap/mixins/_banner.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_border-radius.scss +0 -78
- package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +0 -18
- package/src/scss/theme/bootstrap/mixins/_buttons.scss +0 -70
- package/src/scss/theme/bootstrap/mixins/_caret.scss +0 -64
- package/src/scss/theme/bootstrap/mixins/_clearfix.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_container.scss +0 -11
- package/src/scss/theme/bootstrap/mixins/_deprecate.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_forms.scss +0 -152
- package/src/scss/theme/bootstrap/mixins/_gradients.scss +0 -47
- package/src/scss/theme/bootstrap/mixins/_grid.scss +0 -151
- package/src/scss/theme/bootstrap/mixins/_image.scss +0 -16
- package/src/scss/theme/bootstrap/mixins/_list-group.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_lists.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_pagination.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_reset-text.scss +0 -17
- package/src/scss/theme/bootstrap/mixins/_resize.scss +0 -6
- package/src/scss/theme/bootstrap/mixins/_table-variants.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_transition.scss +0 -26
- package/src/scss/theme/bootstrap/mixins/_utilities.scss +0 -97
- package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +0 -29
- package/src/scss/theme/bootstrap/utilities/_api.scss +0 -47
- package/src/scss/theme/bootstrap/vendor/_rfs.scss +0 -354
- package/src/scss/theme/bs/_badge.scss +0 -20
- package/src/scss/theme/bs/_buttons.scss +0 -185
- package/src/scss/theme/bs/_dropdown.scss +0 -86
- package/src/scss/theme/bs/_forms.scss +0 -161
- package/src/scss/theme/bs/_list-group.scss +0 -73
- package/src/scss/theme/bs/_tables.scss +0 -46
- package/src/scss/theme/fonts/_index.scss +0 -2
- package/src/scss/theme/mixins/_palette.scss +0 -165
- package/src/scss/theme/mixins/_scrollbar.scss +0 -110
|
@@ -9,7 +9,7 @@ export default function useReactions(id: number, reactions: ReactableType[]) {
|
|
|
9
9
|
|
|
10
10
|
const groupReactions = useCallback((data: ReactableType[]) => {
|
|
11
11
|
var group = [...new Map<string, ReactableType>(data.map((item: ReactableType) => [item.content, item])).values()];
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
return group.map((item: ReactableType): ReactionGroup => {
|
|
14
14
|
return {
|
|
15
15
|
content: item.content,
|
|
@@ -19,17 +19,17 @@ export default function useReactions(id: number, reactions: ReactableType[]) {
|
|
|
19
19
|
});
|
|
20
20
|
}, [reactionsList]);
|
|
21
21
|
|
|
22
|
-
const handleRealtimeReactionInserted = useCallback((reaction:
|
|
23
|
-
if (reaction.
|
|
22
|
+
const handleRealtimeReactionInserted = useCallback((reaction: RealtimeReaction) => {
|
|
23
|
+
if (reaction.entity.id === id) {
|
|
24
24
|
setReactionsList((oldList) => {
|
|
25
|
-
return [...oldList || [], { content: reaction.
|
|
25
|
+
return [...oldList || [], { content: reaction.reaction, created_by_id: reaction.actor.id }];
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
}, [id, reactionsList]);
|
|
29
29
|
|
|
30
|
-
const handleRealtimeReactionDeleted = useCallback((reaction:
|
|
31
|
-
if (reaction.
|
|
32
|
-
setReactionsList(oldList => oldList.filter(item => item.created_by_id !== reaction.
|
|
30
|
+
const handleRealtimeReactionDeleted = useCallback((reaction: RealtimeReaction) => {
|
|
31
|
+
if (reaction.entity.id === id) {
|
|
32
|
+
setReactionsList(oldList => oldList.filter(item => item.created_by_id !== reaction.actor.id));
|
|
33
33
|
}
|
|
34
34
|
}, [id, reactionsList]);
|
|
35
35
|
|
|
@@ -38,13 +38,12 @@ export default function useReactions(id: number, reactions: ReactableType[]) {
|
|
|
38
38
|
}, [reactions]);
|
|
39
39
|
|
|
40
40
|
useEffect(() => {
|
|
41
|
-
|
|
42
|
-
on('
|
|
43
|
-
on('reaction-deleted', handleRealtimeReactionDeleted);
|
|
41
|
+
on('reaction_added_' + id, handleRealtimeReactionInserted);
|
|
42
|
+
on('reaction_deleted_' + id, handleRealtimeReactionDeleted);
|
|
44
43
|
|
|
45
44
|
return () => {
|
|
46
|
-
off('
|
|
47
|
-
off('
|
|
45
|
+
off('reaction_added_' + id, handleRealtimeReactionInserted);
|
|
46
|
+
off('reaction_deleted_' + id, handleRealtimeReactionDeleted);
|
|
48
47
|
}
|
|
49
48
|
}, [id]);
|
|
50
49
|
|
|
@@ -1,73 +1,71 @@
|
|
|
1
|
-
@use "
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "base/vars";
|
|
3
|
+
@use "base/colors";
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
.wy-alerts {
|
|
6
|
+
position: fixed;
|
|
7
|
+
left: 0;
|
|
8
|
+
top: 4rem;
|
|
9
|
+
right: 0;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
z-index: vars.$zindex-fixed;
|
|
16
|
+
gap: 1rem;
|
|
17
|
+
}
|
|
4
18
|
|
|
5
|
-
.wy-alert
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
.wy-alert {
|
|
20
|
+
background: colors.$surface-1;
|
|
21
|
+
color: colors.$on-surface;
|
|
22
|
+
margin: 0 0 1rem;
|
|
23
|
+
//max-width: calc(100% - 3rem);
|
|
24
|
+
gap: .5rem;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction:row;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
align-items: baseline;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
border-radius: vars.$border-radius;
|
|
31
|
+
margin-left: auto;
|
|
32
|
+
margin-right: auto;
|
|
33
|
+
margin-bottom: 1rem;
|
|
34
|
+
padding: .5rem 1rem;
|
|
35
|
+
user-select: none;
|
|
36
|
+
//box-shadow: vars.$shadow-level2;
|
|
37
|
+
position: relative;
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
height: auto;
|
|
40
|
+
gap: .5rem;
|
|
21
41
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
42
|
+
&.wy-fade {
|
|
43
|
+
transition: all vars.$transition;
|
|
44
|
+
|
|
45
|
+
&:not(.wy-show) {
|
|
46
|
+
opacity: 0;
|
|
47
|
+
height: 0;
|
|
48
|
+
padding-top: 0;
|
|
49
|
+
padding-bottom: 0;
|
|
50
|
+
margin-top: 0;
|
|
51
|
+
margin-bottom: 0;
|
|
27
52
|
}
|
|
53
|
+
}
|
|
28
54
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
padding-top: 0;
|
|
34
|
-
padding-bottom: 0;
|
|
35
|
-
margin-top: 0;
|
|
55
|
+
.wy-text {
|
|
56
|
+
line-height: 1.5;
|
|
57
|
+
padding: .5rem;
|
|
58
|
+
}
|
|
36
59
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
padding-bottom: .5rem;
|
|
43
|
-
margin-top: 1rem;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
60
|
+
.wy-button {
|
|
61
|
+
margin-left: auto;
|
|
62
|
+
pointer-events: auto;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
46
65
|
|
|
47
|
-
.wy-button {
|
|
48
|
-
cursor: pointer;
|
|
49
|
-
display: inline-flex;
|
|
50
|
-
flex-shrink: 0;
|
|
51
|
-
flex-grow: 0;
|
|
52
66
|
|
|
53
|
-
> * {
|
|
54
|
-
display: inline-flex;
|
|
55
|
-
}
|
|
56
67
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
vertical-align: middle;
|
|
61
|
-
user-select: none;
|
|
62
|
-
border: 1px solid transparent;
|
|
63
|
-
padding: .3125rem .75rem;
|
|
64
|
-
font-size: 1rem;
|
|
65
|
-
line-height: 1.5;
|
|
66
|
-
border-radius: .1875rem;
|
|
67
|
-
color: $white;
|
|
68
|
-
background-color: $primary;
|
|
69
|
-
border-color: $primary;
|
|
70
|
-
box-shadow: $btn-box-shadow;
|
|
71
|
-
margin-top: .5rem;
|
|
72
|
-
}
|
|
68
|
+
.wy-alert-primary {
|
|
69
|
+
background: colors.$primary-container;
|
|
70
|
+
color: colors.$on-primary-container;
|
|
73
71
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
@use "
|
|
3
|
-
@use "
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "base/vars";
|
|
3
|
+
@use "base/colors";
|
|
4
|
+
@use "base/backdrop";
|
|
5
|
+
@use "base/position";
|
|
6
|
+
@use "base/text";
|
|
4
7
|
|
|
5
8
|
.wy-appbars {
|
|
6
9
|
@include position.sticky-top;
|
|
@@ -10,38 +13,63 @@
|
|
|
10
13
|
backdrop-filter: none;
|
|
11
14
|
}
|
|
12
15
|
}
|
|
16
|
+
|
|
17
|
+
--wy-component-background-color: #{colors.$surface-1};
|
|
18
|
+
background-color: var(--wy-component-background-color);
|
|
19
|
+
|
|
20
|
+
box-shadow: #{colors.$outline-variant} 0px -1px 0px 0px inset;
|
|
21
|
+
|
|
22
|
+
> .wy-appbar, > .wy-toolbar {
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
box-shadow: none;
|
|
25
|
+
}
|
|
13
26
|
}
|
|
14
27
|
|
|
15
28
|
.wy-appbar {
|
|
29
|
+
--wy-component-color: #{colors.$on-surface};
|
|
30
|
+
--wy-component-background-color: #{colors.$surface-1};
|
|
31
|
+
|
|
16
32
|
display: grid;
|
|
17
33
|
align-items: center;
|
|
18
34
|
justify-content: space-between;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
35
|
+
justify-items: center;
|
|
36
|
+
height: vars.$appbar-height;
|
|
37
|
+
padding: .25rem;
|
|
38
|
+
flex: 0 0 vars.$appbar-height;
|
|
39
|
+
grid-template-columns: minmax(2.5rem, max-content) minmax(0, max-content) minmax(2.5rem, max-content);
|
|
23
40
|
column-gap: .5rem;
|
|
24
|
-
font-family:
|
|
25
|
-
line-height:
|
|
41
|
+
//font-family: vars.$font-family-base;
|
|
42
|
+
line-height: vars.$line-height-base;
|
|
26
43
|
|
|
27
|
-
|
|
44
|
+
background-color: var(--wy-component-background-color);
|
|
45
|
+
color: var(--wy-component-color);
|
|
46
|
+
box-shadow: #{colors.$outline-variant} 0px -1px 0px 0px inset;
|
|
28
47
|
|
|
29
48
|
.wy-badge {
|
|
30
49
|
align-self: center;
|
|
31
50
|
}
|
|
32
51
|
|
|
33
52
|
.wy-button {
|
|
34
|
-
max-height:
|
|
53
|
+
max-height: 2.5rem;
|
|
35
54
|
}
|
|
36
55
|
}
|
|
37
56
|
|
|
38
|
-
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
.wy-appbar-buttons, .wy-toolbar-buttons {
|
|
39
60
|
display: flex;
|
|
40
|
-
flex: 0 0
|
|
61
|
+
flex: 0 0 auto;
|
|
62
|
+
align-items: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.wy-toolbar-buttons-last {
|
|
66
|
+
margin-inline-start: auto;
|
|
41
67
|
}
|
|
42
68
|
|
|
43
69
|
.wy-appbar-text {
|
|
44
|
-
@include text
|
|
70
|
+
@include text.truncate;
|
|
71
|
+
max-width: 100%;
|
|
72
|
+
|
|
45
73
|
color: inherit !important;
|
|
46
74
|
user-select: none;
|
|
47
75
|
|
|
@@ -54,41 +82,83 @@
|
|
|
54
82
|
}
|
|
55
83
|
}
|
|
56
84
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
85
|
+
// floating toolbars (mainly for pdf preview, but can be also be used for other things)
|
|
86
|
+
.wy-toolbars-bottom {
|
|
87
|
+
position: absolute;
|
|
88
|
+
z-index: vars.$zindex-fixed;
|
|
89
|
+
bottom: math.div(vars.$footerbar-height, 2);
|
|
90
|
+
left: 0;
|
|
91
|
+
right: 0;
|
|
92
|
+
min-height: vars.$appbar-height;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
justify-items: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.wy-toolbar {
|
|
100
|
+
--wy-component-color: #{colors.$on-surface};
|
|
101
|
+
--wy-component-background-color: #{colors.$surface-1};
|
|
102
|
+
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: flex-start;
|
|
107
|
+
justify-items: center;
|
|
108
|
+
min-height: vars.$appbar-height;
|
|
109
|
+
padding: .25rem;
|
|
110
|
+
flex: 1 0 vars.$appbar-height;
|
|
111
|
+
column-gap: .25rem;
|
|
112
|
+
//font-family: vars.$font-family-base;
|
|
113
|
+
line-height: vars.$line-height-base;
|
|
114
|
+
|
|
115
|
+
background-color: var(--wy-component-background-color);
|
|
116
|
+
color: var(--wy-component-color);
|
|
117
|
+
box-shadow: #{colors.$outline-variant} 0px -1px 0px 0px inset;
|
|
118
|
+
|
|
119
|
+
span {
|
|
120
|
+
margin-left: .25rem;
|
|
63
121
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.wy-toolbar-center {
|
|
125
|
+
margin: 0 auto;
|
|
126
|
+
border-radius: vars.$border-radius;
|
|
127
|
+
|
|
128
|
+
.wy-input {
|
|
129
|
+
text-align: center;
|
|
130
|
+
//border-color: transparent;
|
|
69
131
|
}
|
|
70
132
|
}
|
|
71
133
|
|
|
72
134
|
.wy-footerbars {
|
|
73
|
-
padding-bottom:
|
|
135
|
+
padding-bottom: vars.$footerbar-height;
|
|
136
|
+
|
|
137
|
+
> .wy-toolbar {
|
|
138
|
+
box-shadow: none;
|
|
139
|
+
}
|
|
74
140
|
}
|
|
75
141
|
|
|
76
142
|
.wy-footerbar {
|
|
143
|
+
--wy-component-background-color: #{colors.$surface-1};
|
|
144
|
+
--wy-component-color: #{colors.$on-surface};
|
|
145
|
+
|
|
77
146
|
position: absolute;
|
|
78
147
|
bottom: 0;
|
|
79
148
|
left: 0;
|
|
80
149
|
right: 0;
|
|
81
|
-
z-index:
|
|
150
|
+
z-index: vars.$zindex-sticky;
|
|
82
151
|
|
|
83
152
|
&::after {
|
|
84
153
|
content: "";
|
|
154
|
+
background-color: var(--wy-component-background-color);
|
|
155
|
+
color: var(--wy-component-color);
|
|
156
|
+
box-shadow: #{colors.$outline-variant} 0px 1px 0px 0px inset;
|
|
85
157
|
position: absolute;
|
|
86
158
|
width: 100vw;
|
|
87
159
|
left: 0;
|
|
88
160
|
bottom: 0;
|
|
89
|
-
height:
|
|
90
|
-
border-top: $border-width solid rgba($gray-200, $opacity-backdrop);
|
|
91
|
-
background: rgba($gray-50, $opacity-backdrop);
|
|
161
|
+
height: 100%;
|
|
92
162
|
z-index: -1;
|
|
93
163
|
|
|
94
164
|
@include backdrop.filter;
|
|
@@ -103,12 +173,17 @@
|
|
|
103
173
|
}
|
|
104
174
|
}
|
|
105
175
|
|
|
176
|
+
.wy-footerbar-sticky {
|
|
177
|
+
position: sticky;
|
|
178
|
+
}
|
|
179
|
+
|
|
106
180
|
.wy-footerbars-fixed {
|
|
107
181
|
.wy-footerbar {
|
|
108
182
|
position: fixed;
|
|
109
183
|
|
|
110
184
|
&::after {
|
|
111
185
|
position: fixed;
|
|
186
|
+
height: vars.$footerbar-height;
|
|
112
187
|
}
|
|
113
188
|
}
|
|
114
189
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
@use "
|
|
1
|
+
@use "base/vars";
|
|
2
|
+
@use "base/colors";
|
|
3
|
+
|
|
4
|
+
:where(:root, :host > *) {
|
|
5
|
+
--wy-presence-active: #{colors.$green};
|
|
6
|
+
}
|
|
3
7
|
|
|
4
8
|
.wy-avatar {
|
|
5
9
|
border-radius: 50%;
|
|
@@ -12,43 +16,34 @@
|
|
|
12
16
|
text-align: center;
|
|
13
17
|
}
|
|
14
18
|
|
|
15
|
-
.wy-avatar-input {
|
|
16
|
-
@extend %form-control, %form-control-sm;
|
|
17
|
-
background: $light;
|
|
18
|
-
border-color: transparent;
|
|
19
|
-
text-align: center;
|
|
20
|
-
margin-left: auto;
|
|
21
|
-
margin-right: auto;
|
|
22
|
-
margin-bottom: 1.5rem;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
19
|
.wy-avatar-presence {
|
|
26
20
|
position: relative;
|
|
21
|
+
display: inline-flex;
|
|
27
22
|
}
|
|
28
23
|
|
|
29
|
-
.wy-avatar-display-name {
|
|
30
|
-
font-size: $h4-font-size;
|
|
31
|
-
font-weight: $display-font-weight;
|
|
32
|
-
line-height: $display-line-height;
|
|
33
|
-
text-align: center;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
24
|
// presence indicator
|
|
38
25
|
.wy-presence {
|
|
39
|
-
|
|
40
|
-
|
|
26
|
+
&:not(.wy-presence-active) {
|
|
27
|
+
display: none; // initially hidden
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
background-color: var(--wy-component-background-color, transparent);
|
|
41
31
|
width: .75rem;
|
|
42
32
|
height: .75rem;
|
|
43
33
|
border-radius: 50%;
|
|
44
|
-
outline: .125rem solid
|
|
34
|
+
//outline: .125rem solid ;
|
|
45
35
|
position: absolute;
|
|
46
36
|
bottom: 0;
|
|
47
37
|
right: -5%;
|
|
48
|
-
}
|
|
49
38
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
&::after {
|
|
40
|
+
content: "";
|
|
41
|
+
position: absolute;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
border-radius: inherit;
|
|
45
|
+
background-color: var(--wy-presence-active);
|
|
46
|
+
background-clip: content-box;
|
|
47
|
+
padding: .125rem;
|
|
48
|
+
}
|
|
54
49
|
}
|
|
@@ -1,23 +1,30 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
@use "
|
|
1
|
+
@use "base/vars";
|
|
2
|
+
@use "base/colors";
|
|
3
|
+
@use "base/text";
|
|
3
4
|
|
|
5
|
+
$badge-padding-y: .35em !default;
|
|
6
|
+
$badge-padding-x: .65em !default;
|
|
7
|
+
$badge-font-size: .75em !default;
|
|
8
|
+
$badge-font-weight: vars.$font-weight-bold !default;
|
|
4
9
|
|
|
5
10
|
.wy-badge {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
display: inline-block;
|
|
12
|
+
padding: $badge-padding-y $badge-padding-x;
|
|
13
|
+
font-size: $badge-font-size;
|
|
14
|
+
font-weight: $badge-font-weight;
|
|
15
|
+
line-height: 1;
|
|
16
|
+
color: colors.$on-primary;
|
|
17
|
+
text-align: center;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
vertical-align: baseline;
|
|
20
|
+
|
|
21
|
+
// Empty badges collapse automatically
|
|
22
|
+
&:empty {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
18
25
|
|
|
19
|
-
|
|
20
|
-
background-color:
|
|
26
|
+
border-radius: vars.$border-radius-pill;
|
|
27
|
+
background-color: colors.$primary;
|
|
21
28
|
}
|
|
22
29
|
|
|
23
30
|
.wy-button {
|
|
@@ -25,7 +32,7 @@
|
|
|
25
32
|
|
|
26
33
|
// badge, e.g. notification count
|
|
27
34
|
.wy-badge {
|
|
28
|
-
font-size:
|
|
35
|
+
font-size: vars.$font-size-xs;
|
|
29
36
|
position: absolute;
|
|
30
37
|
right: 0;
|
|
31
38
|
top: 0;
|
|
@@ -38,7 +45,8 @@
|
|
|
38
45
|
line-height: .5rem;
|
|
39
46
|
display: block;
|
|
40
47
|
text-align: center;
|
|
41
|
-
|
|
48
|
+
|
|
49
|
+
@include text.truncate;
|
|
42
50
|
|
|
43
51
|
&:empty {
|
|
44
52
|
display: none;
|