From bd688ecd6b5bbc9c7e4b57bc49c31ce79c2b8568 Mon Sep 17 00:00:00 2001 From: entermex Date: Fri, 18 Aug 2023 11:43:28 +0200 Subject: [PATCH 1/3] Fix: proxyApiUrl in chat rooms for the avatars --- webapp/components/Chat/Chat.vue | 4 +--- webapp/plugins/vue-filters.js | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index 37c2b3e06..faffa45e0 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -334,9 +334,7 @@ export default { ;[...this.messages, ...Message].forEach((m) => { if (m.senderId !== this.currentUser.id) m.seen = true m.date = new Date(m.date).toDateString() - if (!m.avatar?.startsWith('/api/')) { - m.avatar = this.$filters.proxyApiUrl(m.avatar) - } + m.avatar = this.$filters.proxyApiUrl(m.avatar) msgs[m.indexId] = m }) this.messages = msgs.filter(Boolean) diff --git a/webapp/plugins/vue-filters.js b/webapp/plugins/vue-filters.js index 5368385b7..327bf518d 100644 --- a/webapp/plugins/vue-filters.js +++ b/webapp/plugins/vue-filters.js @@ -98,6 +98,7 @@ export default ({ app = {} }) => { proxyApiUrl: (input) => { const url = input && (input.url || input) if (!url) return url + if (url.startsWith('/api/')) return url return url.startsWith('/') ? url.replace('/', '/api/') : url }, }) From a0434143caed6ea14fa9a0ad587f235a705455b2 Mon Sep 17 00:00:00 2001 From: Markus Date: Fri, 18 Aug 2023 15:28:27 +0200 Subject: [PATCH 2/3] [fix] fixed ui issues for filter mobile view --- webapp/components/FilterMenu/FilterMenuSection.vue | 4 ---- webapp/components/FilterMenu/PostTypeFilter.vue | 9 +++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/webapp/components/FilterMenu/FilterMenuSection.vue b/webapp/components/FilterMenu/FilterMenuSection.vue index 0970fac9b..7e82fa47e 100644 --- a/webapp/components/FilterMenu/FilterMenuSection.vue +++ b/webapp/components/FilterMenu/FilterMenuSection.vue @@ -80,10 +80,6 @@ export default { @media only screen and (max-width: 630px) { flex-direction: column; - > .title { - text-align: center; - } - // > .sidebar { // max-width: none; // } diff --git a/webapp/components/FilterMenu/PostTypeFilter.vue b/webapp/components/FilterMenu/PostTypeFilter.vue index 6a9b15985..f05554815 100644 --- a/webapp/components/FilterMenu/PostTypeFilter.vue +++ b/webapp/components/FilterMenu/PostTypeFilter.vue @@ -2,7 +2,7 @@