diff --git a/app/javascript/dashboard/routes/dashboard/inbox/components/InboxCard.vue b/app/javascript/dashboard/routes/dashboard/inbox/components/InboxCard.vue
index 7b08ad369..edc697b94 100644
--- a/app/javascript/dashboard/routes/dashboard/inbox/components/InboxCard.vue
+++ b/app/javascript/dashboard/routes/dashboard/inbox/components/InboxCard.vue
@@ -33,6 +33,7 @@
{
- this.resizeObserver = new ResizeObserver(
- debounce(this.resizeObserverCallback, OBSERVER_DEBOUNCE_TIME, false)
- );
- if (this.$refs.inboxCardInfo) {
- this.resizeObserver.observe(this.$refs.inboxCardInfo);
- }
- });
- },
unmounted() {
- if (this.resizeObserver) {
- this.resizeObserver.unobserve(this.$refs.inboxCardInfo);
- this.resizeObserver.disconnect();
- }
this.closeContextMenu();
},
methods: {
- resizeObserverCallback(entries) {
- entries.forEach(entry => {
- this.inboxCardInfoElementWidth = entry.contentRect.width;
- });
+ onResize(entry) {
+ this.inboxCardInfoElementWidth = entry.contentRect.width;
},
openConversation(notification) {
const {