Skip to content

feat(leaderboard): added page indicator (@Repr-dev)#7818

Draft
Repr-dev wants to merge 1 commit intomonkeytypegame:masterfrom
Repr-dev:master
Draft

feat(leaderboard): added page indicator (@Repr-dev)#7818
Repr-dev wants to merge 1 commit intomonkeytypegame:masterfrom
Repr-dev:master

Conversation

@Repr-dev
Copy link
Copy Markdown

Description

At the moment, it is impossible to tell which page of monkeytype.com/leaderboards you are on just from the content of the webpage. One must look at the URL parameters (/leaderboards?...&page=X) in order to get this information. So, I added a numerical indicator next to the page control buttons.

All this code does is add a span element in the same container as the page control buttons. The span is placed to the left of the buttons and is given a lot of the same Tailwind classes. The page number in the span comes from the data that is already being passed down to the buttons.

Old:
image

New (replication of my approach, made with Chrome Inspector since I have not yet figured out how to set up fake leaderboard data for development over localhost. Once I do I'll probably mark this PR ready for review):
image

Stems from Discussion #7815. First open source contribution

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants