1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Scale embedded videos and audios to fit their container (#3943)

* Update videoparser.js

* Update audioparser.js

* Update videoparser.js

* Update audioparser.js
This commit is contained in:
donmor 2019-10-19 18:44:18 +08:00 committed by Jeremy Ruston
parent 6ca1e90659
commit 588af44d4c
2 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,8 @@ var AudioParser = function(type,text,options) {
type: "element",
tag: "audio",
attributes: {
controls: {type: "string", value: "controls"}
controls: {type: "string", value: "controls"},
style: {type: "string", value: "width: 100%; object-fit: contain"}
}
},
src;

View File

@ -17,7 +17,8 @@ var VideoParser = function(type,text,options) {
type: "element",
tag: "video",
attributes: {
controls: {type: "string", value: "controls"}
controls: {type: "string", value: "controls"},
style: {type: "string", value: "width: 100%; object-fit: contain"}
}
},
src;