diff --git a/public/react/src/modules/user/usersInfo/video/EditVideoModal.js b/public/react/src/modules/user/usersInfo/video/EditVideoModal.js index 01b0eb92d..2e4bd7c3a 100644 --- a/public/react/src/modules/user/usersInfo/video/EditVideoModal.js +++ b/public/react/src/modules/user/usersInfo/video/EditVideoModal.js @@ -2,6 +2,7 @@ import React, { useState, useEffect, useContext, useRef, memo } from 'react'; import { Progress, Input, Tooltip, Form } from 'antd' import { getUrl2, isDev, CBreadcrumb, ActionBtn, ThemeContext, ModalWrapper } from 'educoder' import axios from 'axios' +const MAX_LENGTH = 30 function EditVideoModal (props) { const modalEl = useRef(null); @@ -71,11 +72,11 @@ function EditVideoModal (props) { rules: [{ required: true, message: '请输入标题', }, { - max: 30, message: '最大限制为30个字符', + max: MAX_LENGTH, message: '最大限制为30个字符', }], })( - + )} diff --git a/public/react/src/modules/user/usersInfo/video/InfosVideo.css b/public/react/src/modules/user/usersInfo/video/InfosVideo.css index c4c12a3f5..169c3802c 100644 --- a/public/react/src/modules/user/usersInfo/video/InfosVideo.css +++ b/public/react/src/modules/user/usersInfo/video/InfosVideo.css @@ -26,7 +26,7 @@ height: 158px; cursor: pointer; } -.nItem.videoItem:hover .playWrap { +.nItem.videoItem:hover .playWrap {.videoItem img.play display: inline-block; } .nItem .mask { @@ -49,7 +49,7 @@ .videoItem img.play { margin-top: 20%; position: relative; - z-index: 9999; + z-index: 99; } .videoItem .square-main { padding: 9px 8px; diff --git a/public/react/src/modules/user/usersInfo/video/InfosVideo.js b/public/react/src/modules/user/usersInfo/video/InfosVideo.js index b7aa19971..90f2cc287 100644 --- a/public/react/src/modules/user/usersInfo/video/InfosVideo.js +++ b/public/react/src/modules/user/usersInfo/video/InfosVideo.js @@ -269,7 +269,7 @@ function InfoVideo (props) { {categoryObj.category == 'all' && } {!isReview && -
+
onMaskClick(props)}>
} @@ -59,12 +59,12 @@ function VideoInReviewItem (props) { {/* 2019-09-01 10:00:22 */} {moment(published_at || created_at).format('YYYY-MM-DD HH:mm:ss')} { isReview != true &&
- + onEditVideo(props)} style={{ marginTop: '1px', display: 'inline-block'}} > - +
}