-
Notifications
You must be signed in to change notification settings - Fork 529
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
Bug Fix: Improved full-width layout and text truncation to prevent overlap with button #2374
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@adityaraj-09 is attempting to deploy a commit to the Unkey Team on Vercel. A member of the Team first needs to authorize it. |
📝 Walkthrough📝 Walkthrough📝 WalkthroughWalkthroughThe pull request modifies the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.
Details:
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
apps/dashboard/app/(app)/authorization/permissions/[permissionId]/page.tsx (1)
88-93
: Approved: Layout improvements effectively address the reported issue.The changes successfully implement a full-width layout and prevent text overlap with the copy button. The use of
w-full
andmax-w-[calc(100%-32px)]
classes effectively manages the space distribution.For improved readability, consider extracting the inline styles into a separate CSS class. This would make the JSX cleaner and easier to maintain. For example:
+ // Add this class to your CSS file + .permission-name-container { + @apply flex items-center justify-between gap-2 w-full truncate; + } + + .permission-name { + @apply truncate max-w-[calc(100%-32px)]; + } - <div className="flex items-center justify-between gap-2 w-full truncate"> - <span className="truncate max-w-[calc(100%-32px)]">{permission.name}</span> + <div className="permission-name-container"> + <span className="permission-name">{permission.name}</span> <div> <CopyButton value={permission.name} /> </div> </div>This change would maintain the same functionality while improving code maintainability.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- apps/dashboard/app/(app)/authorization/permissions/[permissionId]/page.tsx (1 hunks)
🧰 Additional context used
apps/dashboard/app/(app)/authorization/permissions/[permissionId]/page.tsx
Outdated
Show resolved
Hide resolved
/assign |
This issue is not part of oss.gg hackathon. Please pick a different one or start with a side quest |
please sign the CLA and fix the pr title |
Awarding adityaraj-09: 150 points 🕹️ Well done! Check out your new contribution on oss.gg/adityaraj-09 |
What does this PR do?
Added w-full to ensure the container takes the full width and added a max-w-[calc(100%-32px)] to the span containing permission.name to prevent it from overlapping with the button.
Fixes #2348
Type of change
How should this be tested?
Just go to Authorization/Permissions/ and then go to particular permission.
Checklist
Required
pnpm build
pnpm fmt
console.logs
git pull origin main
Appreciated
Summary by CodeRabbit