feat: updated jumbotron sample range and styles
continuous-integration/drone/push Build is passing Details

dev
Antonio De Lucreziis 6 months ago
parent b3ac86b5cf
commit d809001929

@ -473,7 +473,7 @@ main.page-jumbotron {
justify-content: center;
zoom: 1.5;
zoom: 2.5;
.row {
display: grid;

@ -153,7 +153,8 @@ export const getJumbotronProblem = (db: DatabaseInternal): Promise<Problem | nul
const mostRecentProblems = Object.values(state.problems)
.filter(p => !p.deleted)
.sort((p1, p2) => new Date(p2.createdAt).getTime() - new Date(p1.createdAt).getTime())
.slice(0, 3)
// NOTE: Previously, we only showed only one of the 3 most recent problems
// .slice(0, 3)
if (mostRecentProblems.length === 0) return null

Loading…
Cancel
Save