feat(web): 添加 SVG 响应式容器样式到 MarkdownPreview

- 添加 .svg-inline-render 响应式容器样式
- 深色模式半透明背景支持
This commit is contained in:
supreme0597 2026-05-15 05:16:15 +08:00 committed by Wenjie Zhang
parent b31776e405
commit 6d626ab908

View File

@ -334,5 +334,22 @@ watch(
font-size: 12px;
line-height: 1.5;
}
.svg-inline-render {
max-width: 100%;
height: auto;
overflow: auto;
margin: 12px 0;
svg {
max-width: 100%;
height: auto;
}
}
&.is-dark .svg-inline-render {
background: rgba(255, 255, 255, 0.03);
border-radius: 4px;
}
}
</style>