File tree Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Original file line number Diff line number Diff line change 130
130
</div >
131
131
132
132
<div v-else-if =" message.file.audio" class =" audio-message" >
133
- <audio controls v-if =" message.file.audio" >
134
- <source :src =" message.file.url" />
135
- </audio >
133
+ <div id =" player" >
134
+ <audio controls v-if =" message.file.audio" >
135
+ <source :src =" message.file.url" type =" audio/mpeg" />
136
+ </audio >
137
+ </div >
136
138
</div >
137
139
138
140
<div v-else class =" file-message" >
@@ -721,6 +723,35 @@ export default {
721
723
text- align: right;
722
724
}
723
725
726
+ .selector : not (* : root),
727
+ #player {
728
+ width: 250px ;
729
+ overflow: hidden;
730
+ border- top- right- radius: 1em ;
731
+ border- bottom- right- radius: 2 .5em 1em ;
732
+
733
+ audio {
734
+ height: 40px ;
735
+
736
+ & :: - webkit- media- controls- panel {
737
+ height: 40px ;
738
+ }
739
+
740
+ & :: - webkit- media- controls- mute- button {
741
+ display: none;
742
+ }
743
+
744
+ & :: - webkit- media- controls- timeline {
745
+ min- width: 103px ;
746
+ max- width: 142px ;
747
+ }
748
+
749
+ & : focus {
750
+ outline: none;
751
+ }
752
+ }
753
+ }
754
+
724
755
.audio - message {
725
756
margin- top: 3px ;
726
757
}
You can’t perform that action at this time.
0 commit comments