From 23bd9f10d410e060cb4329a386e35258f7229c1b Mon Sep 17 00:00:00 2001 From: caicai8 <1149225589@qq.com> Date: Sat, 8 Feb 2020 20:10:52 +0800 Subject: [PATCH] style --- public/react/src/modules/courses/Video/VideoIndex.js | 2 +- public/react/src/modules/courses/Video/video.css | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/react/src/modules/courses/Video/VideoIndex.js b/public/react/src/modules/courses/Video/VideoIndex.js index ede1012ea..74b09b6e4 100644 --- a/public/react/src/modules/courses/Video/VideoIndex.js +++ b/public/react/src/modules/courses/Video/VideoIndex.js @@ -82,7 +82,7 @@ class VideoIndex extends Component{ axios.get(fetchUrl, { params: { page, - per_page: PAGE_SIZE, + limit: PAGE_SIZE, } }) .then((response) => { diff --git a/public/react/src/modules/courses/Video/video.css b/public/react/src/modules/courses/Video/video.css index f9669bd01..12c1350b3 100644 --- a/public/react/src/modules/courses/Video/video.css +++ b/public/react/src/modules/courses/Video/video.css @@ -12,11 +12,14 @@ margin-right: 30px; } .videoContent > div:nth-child(3n+0){ - margin-right: 0px; + margin-right: 0px!important; } .videoContent > div.videoItem:nth-child(4n+0){ margin-right: 30px; } +.videoItem:nth-child(4n+0) { + margin-right: 30px; +} .videoContent > div .cover{ border-radius: 12px 12px 0px 0px; height: 158px;