File tree 7 files changed +15
-6
lines changed
7 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ import * as storageService from '@/database/storage'
81
81
import { parseTimestamp , formatTimestamp } from ' @/utils/dates'
82
82
import logoAvatar from ' @/assets/logo.png'
83
83
84
- import { register } from ' vue-advanced-chat'
84
+ // import { register } from 'vue-advanced-chat'
85
85
// import { register } from './../../dist/vue-advanced-chat.es.js'
86
- // import { register } from './../../src/lib/index.js'
86
+ import { register } from ' ./../../src/lib/index.js'
87
87
register ()
88
88
89
89
export default {
Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ $media-preview-width-sm: 20px;
29
29
background-position : center ;
30
30
}
31
31
32
+ video {
33
+ width : 100% ;
34
+ height : 100% ;
35
+ }
36
+
32
37
.vac-svg-button {
33
38
position : absolute ;
34
39
top : 30px ;
Original file line number Diff line number Diff line change 17
17
</div >
18
18
19
19
<div v-else-if =" isVideo" class =" vac-media-preview-container" >
20
- <video width = " 100% " height = " 100% " controls autoplay >
20
+ <video controls autoplay >
21
21
<source :src =" file.url" />
22
22
</video >
23
23
</div >
Original file line number Diff line number Diff line change 54
54
cursor : pointer ;
55
55
56
56
video {
57
+ width : 100% ;
58
+ height : 100% ;
57
59
border-radius : 4px ;
58
60
}
59
61
}
Original file line number Diff line number Diff line change 66
66
<div
67
67
v-else-if =" isVideo"
68
68
class =" vac-video-container"
69
- @click.prevent =" openFile('preview')"
69
+ @click.prevent =" openFile($event, 'preview')"
70
70
>
71
71
<progress-bar v-if =" file.progress >= 0" :progress =" file.progress" />
72
- <video width = " 100% " height = " 100% " controls >
72
+ <video controls >
73
73
<source :src =" file.url" />
74
74
</video >
75
75
</div >
Original file line number Diff line number Diff line change 26
26
max-width : 100% ;
27
27
28
28
video {
29
+ width : 100% ;
30
+ height : 100% ;
29
31
border-radius : 4px ;
30
32
}
31
33
}
Original file line number Diff line number Diff line change 14
14
</div >
15
15
16
16
<div v-else-if =" isVideo" class =" vac-video-reply-container" >
17
- <video width = " 100% " height = " 100% " controls >
17
+ <video controls >
18
18
<source :src =" firstFile.url" />
19
19
</video >
20
20
</div >
You can’t perform that action at this time.
0 commit comments