Skip to content

fix: make "view" button in comments feed an anchor link#4721

Merged
cemreinanc merged 1 commit into
mainfrom
claude/issue-4585-mouse-wheel-click-on-view
May 13, 2026
Merged

fix: make "view" button in comments feed an anchor link#4721
cemreinanc merged 1 commit into
mainfrom
claude/issue-4585-mouse-wheel-click-on-view

Conversation

@cemreinanc
Copy link
Copy Markdown
Contributor

Fixes #4585

Summary

The "view" control in the comments feed was a <button> that called window.open on click. Because the underlying element was a <button>, mouse-wheel (middle) click triggered the browser's autoscroll cursor instead of opening a new tab.

This PR changes the control to a real anchor link (via the shared Button component's href prop, which renders as a Next.js Link) with target="_blank", so middle-click and ctrl/cmd-click open a new tab natively.

Test plan

  • In the comments feed, left-click on "view" opens the comment in a new tab.
  • Mouse-wheel (middle) click on "view" opens the comment in a new tab (no more autoscroll cursor).
  • Ctrl/Cmd+Click behaves like a normal link.

Generated with Claude Code

Previously the "view" control was a <button> that called window.open in
its onClick handler. As a result, middle-click (mouse-wheel click) did
not open a new tab and instead triggered the browser's autoscroll
cursor. Render it as a real anchor with target="_blank" so native
middle-click and ctrl/cmd-click behavior works.

Fixes #4585

Co-authored-by: Cemre Inanc <cemreinanc@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 13, 2026

Warning

Rate limit exceeded

@cemreinanc has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 57 minutes and 37 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 749dcf99-f4db-4aba-bc9f-39ca73c49979

📥 Commits

Reviewing files that changed from the base of the PR and between 5793e11 and 6773c62.

📒 Files selected for processing (2)
  • front_end/src/components/comment_feed/comment_card.tsx
  • front_end/src/components/comment_feed/comment_feed_card.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-4585-mouse-wheel-click-on-view

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 13, 2026

Cleanup: Preview Environment Removed

The preview environment for this PR has been destroyed.

Resource Status
🌐 Preview App Deleted
🗄️ PostgreSQL Branch Deleted
⚡ Redis Database Deleted
🔧 GitHub Deployments Removed
📦 Docker Image Retained (auto-cleanup via GHCR policies)

Cleanup triggered by PR close at 2026-05-13T10:13:54Z

@cemreinanc cemreinanc merged commit 5e78e91 into main May 13, 2026
16 checks passed
@cemreinanc cemreinanc deleted the claude/issue-4585-mouse-wheel-click-on-view branch May 13, 2026 10:13
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.

Mouse wheel click on "view" in the comments feed does not work

2 participants