fix: video width use css control
This commit is contained in:
@@ -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%';
|
||||
});
|
||||
}
|
||||
|
||||
@@ -218,6 +218,9 @@ img:not(a img, img.broken) {
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
video {
|
||||
max-width: 100%;
|
||||
}
|
||||
p {
|
||||
> code {
|
||||
background-color: #e9ecef;
|
||||
|
||||
Reference in New Issue
Block a user