forked from Kieran/snort
commit
4bfeb38cdf
@ -52,7 +52,7 @@
|
||||
margin: 20px;
|
||||
}
|
||||
|
||||
.text img, .text video, .text iframe {
|
||||
.text img, .text video, .text iframe, .text audio {
|
||||
max-width: 100%;
|
||||
max-height: 500px;
|
||||
margin: 10px auto;
|
||||
|
@ -41,6 +41,11 @@ function transformHttpLink(a: string, pref: UserPreferences) {
|
||||
case "webp": {
|
||||
return <img key={url.toString()} src={url.toString()} />;
|
||||
}
|
||||
case "wav":
|
||||
case "mp3":
|
||||
case "ogg": {
|
||||
return <audio key={url.toString()} src={url.toString()} controls />
|
||||
}
|
||||
case "mp4":
|
||||
case "mov":
|
||||
case "mkv":
|
||||
|
Loading…
Reference in New Issue
Block a user