mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
expand news section
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
||||||
min-height: 219px;
|
min-height: 219px;
|
||||||
height: 30%;
|
height: 40%;
|
||||||
width: 512px;
|
width: 512px;
|
||||||
|
|
||||||
bottom: 35%;
|
bottom: 35%;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export default class NewsSection extends React.Component<IProps, IState> {
|
|||||||
if (!Array.isArray(obj)) return
|
if (!Array.isArray(obj)) return
|
||||||
|
|
||||||
// Get only first 5
|
// Get only first 5
|
||||||
const commitsList = obj.slice(0, 5)
|
const commitsList = obj.slice(0, 10)
|
||||||
const commitsListHtml = commitsList.map((commit: any) => {
|
const commitsListHtml = commitsList.map((commit: any) => {
|
||||||
return (
|
return (
|
||||||
<tr className="Commit" key={commit.sha}>
|
<tr className="Commit" key={commit.sha}>
|
||||||
|
|||||||
Reference in New Issue
Block a user