diff --git a/app/index/controller/Attachment.php b/app/index/controller/Attachment.php index ae49b874..af288e40 100644 --- a/app/index/controller/Attachment.php +++ b/app/index/controller/Attachment.php @@ -120,6 +120,10 @@ class Attachment extends Common 'id' => $param['id']??null ] ]); + + if (!$videos->isEmpty()) { + $videos->setCollection($videos->getCollection()->chunk(2)); + } View::assign('videos', $videos); View::assign('page', $videos->render()); diff --git a/app/index/view/attachment/video.html b/app/index/view/attachment/video.html index 6447bbdc..cab1f2b4 100644 --- a/app/index/view/attachment/video.html +++ b/app/index/view/attachment/video.html @@ -37,7 +37,7 @@
diff --git a/public/static/index/css/download.css b/public/static/index/css/download.css index 3576a89a..1c7de886 100755 --- a/public/static/index/css/download.css +++ b/public/static/index/css/download.css @@ -158,12 +158,15 @@ background-color: rgba(0, 75, 250, 0.05); cursor: pointer; } +.orico_Page_download .downloadMain .page-box { + text-align: center; +} .orico_Page_download .downloadMain .contact_c .pagination { + display: inline-block!important; zoom: 1; text-align: center; color: #555; - clear: both; - padding-bottom: 2rem; + padding-bottom: 2rem!important; } .orico_Page_download .downloadMain .contact_c .pagination span { padding: 0px 0px;