Skip to content

Fix: leaderboard mobile responsiveness#197

Merged
elliotBraem merged 5 commits intomainfrom
fix/leaderboard-mobile-main
Jun 24, 2025
Merged

Fix: leaderboard mobile responsiveness#197
elliotBraem merged 5 commits intomainfrom
fix/leaderboard-mobile-main

Conversation

@itexpert120
Copy link
Collaborator

@itexpert120 itexpert120 commented Jun 24, 2025

The table is scroll able horizontally to view hidden content

localhost_5173_leaderboard_feed=all+feeds timeframe=all(iPhone SE)

Summary by CodeRabbit

  • New Features

    • Added a new development script for running the frontend app directly.
  • Bug Fixes

    • Feed images now display a fallback image and alt text if missing or if the original image fails to load.
  • Style

    • Improved leaderboard table responsiveness for small screens by adjusting its maximum width.
    • Adjusted leaderboard filter layout by removing extra horizontal padding.

@vercel
Copy link

vercel bot commented Jun 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curatedotfun-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 24, 2025 10:56am

@coderabbitai
Copy link

coderabbitai bot commented Jun 24, 2025

Walkthrough

Styling adjustments were made to the FeedList, LeaderboardFilters, and LeaderboardTable components, including improved image fallbacks, container spacing, and responsive sizing. Additionally, a new npm script was added to package.json for running the frontend development server with a specific filter.

Changes

File(s) Change Summary
apps/app/src/components/FeedList.tsx Improved image fallback logic: default image source and alt text, added onError handler, removed width/height.
apps/app/src/components/leaderboard/LeaderboardFilters.tsx Removed horizontal padding (px-4) from the outer container div.
apps/app/src/components/leaderboard/LeaderboardTable.tsx Changed max-width from 368px to calc(100vw - 32px) for responsive sizing.
package.json Added dev:frontend script to run frontend development server for @curatedotfun/app.

Suggested reviewers

  • elliotBraem

Poem

A tweak to the feeds, a script in the pack,
Images fallback if the originals lack!
The leaderboard stretches, the filters are neat,
With every small change, our app feels complete.
🐇✨ Hopping along, the code’s looking sweet!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7667141 and 14813d2.

📒 Files selected for processing (4)
  • apps/app/src/components/FeedList.tsx (1 hunks)
  • apps/app/src/components/leaderboard/LeaderboardFilters.tsx (1 hunks)
  • apps/app/src/components/leaderboard/LeaderboardTable.tsx (1 hunks)
  • package.json (1 hunks)
🔇 Additional comments (4)
package.json (1)

15-15: Useful development script addition.

The new dev:frontend script provides a convenient way to run development specifically for the frontend app package. This will help developers work on the UI components more efficiently.

apps/app/src/components/leaderboard/LeaderboardFilters.tsx (1)

49-49: Good alignment with mobile responsiveness goal.

Removing the horizontal padding (px-4) gives more space for content on mobile devices and aligns well with the responsive width calculation in LeaderboardTable.tsx.

apps/app/src/components/FeedList.tsx (1)

31-36: Improved image fallback handling.

The fallback image source and error handling improve the robustness of the feed display. While not directly related to the leaderboard mobile responsiveness objective, these changes enhance the overall user experience.

apps/app/src/components/leaderboard/LeaderboardTable.tsx (1)

28-28: ```shell
#!/bin/bash

Locate the LeaderboardTable.tsx file

FILE=$(fd LeaderboardTable.tsx -t f)
echo "Found file at: $FILE"

Show lines around the responsive container (around line 28)

echo -e "\n=== Lines 20-35 ==="
sed -n '20,35p' "$FILE"

Check for any use of overflow-hidden that might block scrolling

echo -e "\n=== overflow-hidden occurrences ==="
grep -n "overflow-hidden" "$FILE" || echo "None found"

Confirm presence of overflow-x-auto on the table body wrapper

echo -e "\n=== overflow-x-auto occurrences ==="
grep -n "overflow-x-auto" "$FILE" || echo "None found"


</details>

</blockquote></details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACIAMXgADy5ItCUKAXxnemZBeEi/aW58DERJMmlEaMgAdzRkBwFmdRp6OTDYD2xEShQaBO5KXABGACYABnRkW0gMRwEeoYBOAHYULFwOgqLSghdrfFwAGXwGAGsAegZsKh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LA3izgmaWjIfhHjWiemhS96sAC8AABK4xF7iPEsdwRuzJqgIBcoNIgpAKCPu/VIQmY6OHDkXPYAYlNSpTMJLWPI6tvrahLI3YD1xz5gYwBB6ex7SDPAdm/WUHo73IF4cUUqRBKP62QNUEWla8rVsVuYFW9DDUng3aNfVesdWG36Kos1uaLXaKtf8/Rrscy3qnXXOgXBG7RDnQukUtBohcGiO+7UQj1Q/ogH+ygQGQNUdwHWCD0Rp5tjI9u8009ugdiwIZZuYUT1nowI3WtZjDAGEwjo78OACJp2IgoUC5E/BoCor22i8FFAMWQsxNCGEPzJaaLgAA+jTRApX/D8n47QUrA9nChFYjFoY3N2lDGabQEYtBFh3CGO02gQxljLG5s0tpiwACsIw0DcxIG1ubdx2kCGWCMVpIwhs9Oa0V0i6hyu0Eq9V/5tXStfgK0AA= -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=PotLock/curatedotfun&utm_content=197):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

@elliotBraem elliotBraem merged commit 586dc66 into main Jun 24, 2025
4 checks passed
@elliotBraem elliotBraem deleted the fix/leaderboard-mobile-main branch June 24, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants