File tree 10 files changed +40
-13
lines changed
components/EmojiPickerContainer
10 files changed +40
-13
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,9 @@ export default {
114
114
},
115
115
setEmojiPickerPosition (clientY , innerWidth , innerHeight ) {
116
116
const mobileSize = innerWidth < 500 || innerHeight < 700
117
- const roomFooterRef = document .getElementById (' room-footer' )
117
+ const roomFooterRef = document
118
+ .querySelector (' vue-advanced-chat' )
119
+ .shadowRoot .getElementById (' room-footer' )
118
120
119
121
if (! roomFooterRef) {
120
122
if (mobileSize) this .emojiPickerRight = ' -50px'
Original file line number Diff line number Diff line change @@ -332,11 +332,15 @@ export default {
332
332
this .observer .disconnect ()
333
333
}
334
334
335
- const loader = document .getElementById (' infinite-loader-messages' )
335
+ const loader = document
336
+ .querySelector (' vue-advanced-chat' )
337
+ .shadowRoot .getElementById (' infinite-loader-messages' )
336
338
337
339
if (loader) {
338
340
const options = {
339
- root: document .getElementById (' messages-list' ),
341
+ root: document
342
+ .querySelector (' vue-advanced-chat' )
343
+ .shadowRoot .getElementById (' messages-list' ),
340
344
rootMargin: ` ${ this .scrollDistance } px` ,
341
345
threshold: 0
342
346
}
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ export default {
39
39
40
40
computed: {
41
41
footerHeight () {
42
- return document .getElementById (' room-footer' ).clientHeight
42
+ return document
43
+ .querySelector (' vue-advanced-chat' )
44
+ .shadowRoot .getElementById (' room-footer' ).clientHeight
43
45
}
44
46
},
45
47
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ export default {
46
46
47
47
computed: {
48
48
footerHeight () {
49
- return document .getElementById (' room-footer' ).clientHeight
49
+ return document
50
+ .querySelector (' vue-advanced-chat' )
51
+ .shadowRoot .getElementById (' room-footer' ).clientHeight
50
52
}
51
53
}
52
54
}
Original file line number Diff line number Diff line change @@ -101,7 +101,9 @@ export default {
101
101
102
102
computed: {
103
103
footerHeight () {
104
- return document .getElementById (' room-footer' ).clientHeight
104
+ return document
105
+ .querySelector (' vue-advanced-chat' )
106
+ .shadowRoot .getElementById (' room-footer' ).clientHeight
105
107
},
106
108
firstFile () {
107
109
return this .messageReply ? .files ? .length ? this .messageReply .files [0 ] : {}
Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ export default {
46
46
47
47
computed: {
48
48
footerHeight () {
49
- return document .getElementById (' room-footer' ).clientHeight
49
+ return document
50
+ .querySelector (' vue-advanced-chat' )
51
+ .shadowRoot .getElementById (' room-footer' ).clientHeight
50
52
}
51
53
},
52
54
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ export default {
48
48
49
49
computed: {
50
50
footerHeight () {
51
- return document .getElementById (' room-footer' ).clientHeight
51
+ return document
52
+ .querySelector (' vue-advanced-chat' )
53
+ .shadowRoot .getElementById (' room-footer' ).clientHeight
52
54
}
53
55
},
54
56
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ export default {
62
62
},
63
63
64
64
mounted () {
65
- this .player = document .getElementById (this .playerUniqId )
65
+ this .player = document
66
+ .querySelector (' vue-advanced-chat' )
67
+ .shadowRoot .getElementById (this .playerUniqId )
66
68
67
69
this .player .addEventListener (' ended' , () => {
68
70
this .isPlaying = false
Original file line number Diff line number Diff line change @@ -169,7 +169,9 @@ export default {
169
169
if (! this .optionsOpened ) return
170
170
171
171
setTimeout (() => {
172
- const roomFooterRef = document .getElementById (' room-footer' )
172
+ const roomFooterRef = document
173
+ .querySelector (' vue-advanced-chat' )
174
+ .shadowRoot .getElementById (' room-footer' )
173
175
174
176
if (
175
177
! roomFooterRef ||
Original file line number Diff line number Diff line change 2
2
<div
3
3
v-show =" showRoomsList"
4
4
class =" vac-rooms-container"
5
- :class =" { 'vac-rooms-container-full': isMobile, 'vac-app-border-r': !isMobile }"
5
+ :class =" {
6
+ 'vac-rooms-container-full': isMobile,
7
+ 'vac-app-border-r': !isMobile
8
+ }"
6
9
>
7
10
<slot name =" rooms-header" />
8
11
@@ -165,11 +168,15 @@ export default {
165
168
this .observer .disconnect ()
166
169
}
167
170
168
- const loader = document .getElementById (' infinite-loader-rooms' )
171
+ const loader = document
172
+ .querySelector (' vue-advanced-chat' )
173
+ .shadowRoot .getElementById (' infinite-loader-rooms' )
169
174
170
175
if (loader) {
171
176
const options = {
172
- root: document .getElementById (' rooms-list' ),
177
+ root: document
178
+ .querySelector (' vue-advanced-chat' )
179
+ .shadowRoot .getElementById (' rooms-list' ),
173
180
rootMargin: ` ${ this .scrollDistance } px` ,
174
181
threshold: 0
175
182
}
You can’t perform that action at this time.
0 commit comments