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:
parent
6ca1e90659
commit
588af44d4c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user