Commit 6ff8128a authored by zhuyangbin's avatar zhuyangbin

video style

parent 8aae3a3b
...@@ -70,6 +70,9 @@ ...@@ -70,6 +70,9 @@
.tips{ .tips{
font-size: 10px; font-size: 10px;
} }
.videoWrap{
max-height: calc(100vh - 200px);
}
} }
.textUploadList { .textUploadList {
......
...@@ -60,7 +60,7 @@ export default class uploadDetail extends React.Component { ...@@ -60,7 +60,7 @@ export default class uploadDetail extends React.Component {
{type === 'pdf' && <iframe width="100%" height={500} src={`${url}`} title="pdf" />} {type === 'pdf' && <iframe width="100%" height={500} src={`${url}`} title="pdf" />}
{type === 'video' && ( {type === 'video' && (
<> <>
<video src={url} controls width="100%"> <video src={url} controls width="100%" className={styles.videoWrap}>
你的浏览器暂不支持该视频在线播放,请下载后播放 你的浏览器暂不支持该视频在线播放,请下载后播放
</video> </video>
<span className={styles.tips}>如无法播放,请下载后播放</span> <span className={styles.tips}>如无法播放,请下载后播放</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment