diff --git a/src/forge/Main/Index.scss b/src/forge/Main/Index.scss index 6e0c300c4..9a0bf5391 100644 --- a/src/forge/Main/Index.scss +++ b/src/forge/Main/Index.scss @@ -189,13 +189,13 @@ flex-wrap: wrap; padding-bottom: 2px; a{ - margin: 0px 17px 0px 0px; + margin: 0px 17px 10px 0px; img{ border-radius: 50%; width: 40px; height: 40px; } - &:nth-child(6){ + &:nth-child(5){ margin-right: 0px; } } diff --git a/src/forge/Main/tag/Index.jsx b/src/forge/Main/tag/Index.jsx index 54586b144..7ab02ac42 100644 --- a/src/forge/Main/tag/Index.jsx +++ b/src/forge/Main/tag/Index.jsx @@ -6,20 +6,29 @@ import { Link } from 'react-router-dom'; import { truncateCommitId } from '../../common/util'; import './Index.scss'; import Tree from '../img/tree.png' +import Pagination from 'rc-pagination'; +const limit = 15; function Tags(props) { - const [ source , setSource ] = useState([]); + const [ source , setSource ] = useState([]); + const [ total ,setTotal ] = useState(0); + const [ page , setPage ] = useState(1); const { projectsId , owner } = props.match.params; useEffect(() => { if (projectsId) { const url = `/${owner}/${projectsId}/tags.json`; - axios.get(url).then((result) => { + axios.get(url,{ + // params:{ + // limit + // } + }).then((result) => { if (result) { setSource(result.data); + setTotal(result.data.total_count); } }).catch(error => {}) } @@ -97,6 +106,10 @@ function Tags(props) {