-
Notifications
You must be signed in to change notification settings - Fork 411
New addons: Compact Profile Sliders + User Stats In Profile #8569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@Samq64 Can you please check this? Thanks ;) |
|
Hi, if it looks good in your device then the CSS is probably fine. (AFAIK no addons affect the rows at profile pages, so there are no potential conflicts - maybe just dark mode, 2.0→3.0 and 3.0→2.0) Let's discuss at #8548 whether it is better to make this a new addon or a setting inside an existing one. |
|
@Samq64 and @WorldLanguages, can you check out this? I added 1 more addons, and I think it's very interesting, not useful, but it will be used a lot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in #8548 could the compact profile addon be merged into the more items per row addon as a toggle?
| @@ -0,0 +1,16 @@ | |||
| .sa-compact-row { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This class is not applied to any elements, so all the styles in this file are unused.
|
|
||
| // Fetch views, loves, faves from ScratchInfo API | ||
| try { | ||
| const res = await fetch(`https://scratchinfo.quuq.dev/api/v1/users/${username}/projectStats`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know who runs this API?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know who runs this API?
Co-authored-by: Samq64 <81489795+Samq64@users.noreply.github.com>
Co-authored-by: Samq64 <81489795+Samq64@users.noreply.github.com>
Co-authored-by: Samq64 <81489795+Samq64@users.noreply.github.com>
Co-authored-by: Samq64 <81489795+Samq64@users.noreply.github.com>
Resolves #8548
Changes
This pull request adds two new addons:
Compact Scratch Profile Sliders
Rearranges the profile sections into a cleaner two-column layout by pairing sliders side by side.
The order is preserved as:
Additional improvements:
User Stats in Profile
Adds a flexible statistics box at the bottom of the profile data section, showing:
Features:
Reason for changes
Scratch profile pages can feel cluttered and require a lot of vertical scrolling.
These addons make profiles look more compact and organized, while still keeping all sections accessible.
They improve readability and help users quickly access the content they care about, especially on larger monitors.
Additionally, the stats box gives a clear overview of a user's project performance.
Screenshots / Videos
I forgot to make screenshots.
Tests
Credits
Addons created by VIGARPAST_777.