From 43fefa7377d5ff4cc03908766315ef8273257e79 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Wed, 20 Mar 2024 09:04:41 +0100 Subject: [PATCH 1/3] fix(SharedItems): get shared items straight after page reload Signed-off-by: Maksim Sukharev --- .../RightSidebar/SharedItems/SharedItemsTab.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/RightSidebar/SharedItems/SharedItemsTab.vue b/src/components/RightSidebar/SharedItems/SharedItemsTab.vue index 2d27d262cee..557ba4c5140 100644 --- a/src/components/RightSidebar/SharedItems/SharedItemsTab.vue +++ b/src/components/RightSidebar/SharedItems/SharedItemsTab.vue @@ -181,10 +181,13 @@ export default { }, watch: { - sharedItemsIdentifier() { - if (this.token && this.active && this.isSidebarOpen) { - this.sharedItemsStore.getSharedItemsOverview(this.token) - } + sharedItemsIdentifier: { + immediate: true, + handler() { + if (this.token && this.active && this.isSidebarOpen) { + this.sharedItemsStore.getSharedItemsOverview(this.token) + } + }, }, }, From 12aaaac52b621d4209cfcc2be93e24f10a564b3a Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Wed, 20 Mar 2024 12:49:38 +0100 Subject: [PATCH 2/3] fix(avatar): restrict image fallback size Signed-off-by: Maksim Sukharev --- src/components/AvatarWrapper/AvatarWrapper.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/AvatarWrapper/AvatarWrapper.vue b/src/components/AvatarWrapper/AvatarWrapper.vue index 88524a99684..562f2cc246f 100644 --- a/src/components/AvatarWrapper/AvatarWrapper.vue +++ b/src/components/AvatarWrapper/AvatarWrapper.vue @@ -185,6 +185,8 @@ export default { top: 0; width: var(--avatar-size); height: var(--avatar-size); + max-height: var(--avatar-size); + max-width: var(--avatar-size); line-height: var(--avatar-size); font-size: calc(var(--avatar-size) / 2); border-radius: 50%; From 8ab94c8a4fefb30989447b2d408ff0d5cc742d4b Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Wed, 20 Mar 2024 10:19:30 +0100 Subject: [PATCH 3/3] fix(conversation): set warnings on name/description max length Signed-off-by: Maksim Sukharev --- .../ConversationSettings/BasicInfo.vue | 7 ++++- .../NewGroupConversation.vue | 27 +++++++++++++++++-- src/constants.js | 3 +++ 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/src/components/ConversationSettings/BasicInfo.vue b/src/components/ConversationSettings/BasicInfo.vue index 6282c633597..565283233ba 100644 --- a/src/components/ConversationSettings/BasicInfo.vue +++ b/src/components/ConversationSettings/BasicInfo.vue @@ -30,6 +30,7 @@ :loading="isNameLoading" :placeholder="t('spreed', 'Enter a name for this conversation')" :edit-button-aria-label="t('spreed', 'Edit conversation name')" + :max-length="CONVERSATION.MAX_NAME_LENGTH" @submit-text="handleUpdateName" @update:editing="handleEditName" />