Skip to content

fix: prevent text overflow in environment cards#1015

Merged
adityachoudhari26 merged 1 commit intomainfrom
claude/issue-1013-20260420-1820
Apr 20, 2026
Merged

fix: prevent text overflow in environment cards#1015
adityachoudhari26 merged 1 commit intomainfrom
claude/issue-1013-20260420-1820

Conversation

@adityachoudhari26
Copy link
Copy Markdown
Member

Fixes text overflow in environment cards in the environments view.

Changes:

  • Add overflow-hidden to Card to contain all content within boundaries
  • Add line-clamp-2 to description paragraph to limit to 2 lines
  • Add min-w-0 to environment name span and resource selector code element so truncate works correctly inside flex containers

Closes #1013

Generated with Claude Code

- Add overflow-hidden to Card to contain all content within boundaries
- Add line-clamp-2 to description paragraph to limit to 2 lines
- Add min-w-0 to environment name span and resource selector code
  element so truncate works correctly inside flex containers

Co-authored-by: Aditya Choudhari <adityachoudhari26@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 20, 2026 21:42
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 20, 2026

Warning

Rate limit exceeded

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

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 37 minutes and 5 seconds.

⌛ 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: 6da323ab-ca13-4fca-a153-547250ddb98e

📥 Commits

Reviewing files that changed from the base of the PR and between ac04d56 and e1fa2a7.

📒 Files selected for processing (1)
  • apps/web/app/routes/ws/environments/_components/EnvironmentCard.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-1013-20260420-1820

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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses text overflow issues in the workspace “Environments” view by constraining overflowing content within each environment card and ensuring truncation works correctly inside flex layouts.

Changes:

  • Add overflow-hidden to the environment Card to keep content within the card bounds.
  • Clamp the environment description to 2 lines with line-clamp-2.
  • Add min-w-0 to flex children so truncate works reliably for the environment name and resource selector.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adityachoudhari26 adityachoudhari26 merged commit 42b7993 into main Apr 20, 2026
11 of 12 checks passed
@adityachoudhari26 adityachoudhari26 deleted the claude/issue-1013-20260420-1820 branch April 20, 2026 21:50
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.

Incorrrect overflow for text in environments view

3 participants