Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion assets/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,12 @@ ul.credit {
"historic-statistics" auto
"leaderboard" auto;

@media (min-width: 768px) {
@media (min-width: 1440px) {
grid-template:
"hello-text hello-text hello-text hello-text" auto
"weekly-metrics weekly-metrics leaderboard leaderboard" 1fr
"historic-statistics historic-statistics leaderboard leaderboard" 1fr;
grid-template-columns: 2fr 2fr 1fr 1fr;
}

&__hello-text {
Expand Down
1 change: 1 addition & 0 deletions src/Controller/OverviewCardsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ public function leaderboard(
SolutionEventRepository $solutionEventRepository,
): Response {
$leaderboard = $solutionEventRepository->listLeaderboard($user->getGroup(), '7 days');
$leaderboard = \array_slice($leaderboard, 0, 10);

return $this->render('overview/cards/leaderboard.html.twig', [
'leaderboard' => $leaderboard,
Expand Down
2 changes: 1 addition & 1 deletion templates/overview/cards/leaderboard.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<tbody>
{% for item in leaderboard %}
<tr>
<th scope="row">{{ item.user.name }}</th>
<th scope="row" class="text-truncate">{{ item.user.name|u.truncate(24, '…') }}</th>
<td>{{ item.count }}</td>
</tr>
{% endfor %}
Expand Down
Loading