fix: video width use css control

This commit is contained in:
shuai
2023-04-06 18:05:00 +08:00
parent aac00fe648
commit ef89efdf7d
2 changed files with 3 additions and 5 deletions
-5
View File
@@ -141,9 +141,4 @@ export function htmlRender(el: HTMLElement | null) {
table.parentNode?.replaceChild(div, table);
div.appendChild(table);
});
// video width 100%
el.querySelectorAll('video').forEach((video) => {
video.style.width = '100%';
});
}
+3
View File
@@ -218,6 +218,9 @@ img:not(a img, img.broken) {
img {
max-width: 100%;
}
video {
max-width: 100%;
}
p {
> code {
background-color: #e9ecef;