mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-28 15:08:46 +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",
|
type: "element",
|
||||||
tag: "audio",
|
tag: "audio",
|
||||||
attributes: {
|
attributes: {
|
||||||
controls: {type: "string", value: "controls"}
|
controls: {type: "string", value: "controls"},
|
||||||
|
style: {type: "string", value: "width: 100%; object-fit: contain"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
src;
|
src;
|
||||||
|
@ -17,7 +17,8 @@ var VideoParser = function(type,text,options) {
|
|||||||
type: "element",
|
type: "element",
|
||||||
tag: "video",
|
tag: "video",
|
||||||
attributes: {
|
attributes: {
|
||||||
controls: {type: "string", value: "controls"}
|
controls: {type: "string", value: "controls"},
|
||||||
|
style: {type: "string", value: "width: 100%; object-fit: contain"}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
src;
|
src;
|
||||||
|
Loading…
Reference in New Issue
Block a user