-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fix/truncated button change size on hover 794 #820
Fix/truncated button change size on hover 794 #820
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@prakha is attempting to deploy a commit to the ROUTE06 Core Team on Vercel. A member of the Team first needs to authorize it. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@prakha Could you please keep the button space open so that the truncate position does not change? Screen.Recording.2025-03-07.at.9.46.22.mov |
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.
You are always cool!
// Check on window resize and when sidebar width changes | ||
window.addEventListener('resize', checkTruncation) |
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.
Thanks for keeping up with the recent spec changes!
tooltip={name} | ||
showtooltip={isTruncated} |
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.
Cool refactoring 👏🏻
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.
Thanks! I will adjust some appearance.
Issue
Why is this change needed?
What would you like reviewers to focus on?
Testing Verification
What was done
🤖 Generated by PR Agent at eb58504
ResizeObserver
for dynamic truncation checks.SidebarMenuButton
to support conditional tooltips.showtooltip
prop for tooltip control.Detailed Changes
TableNameMenuButton.tsx
Implement text truncation detection and tooltip control
frontend/packages/erd-core/src/features/erd/components/ERDRenderer/LeftPane/TableNameMenuButton/TableNameMenuButton.tsx
ResizeObserver
.SidebarMenuButton
.Sidebar.tsx
Add conditional tooltip support to SidebarMenuButton
frontend/packages/ui/src/components/Sidebar/Sidebar.tsx
showtooltip
prop to control tooltip visibility.SidebarMenuButton
.TableNameMenuButton.module.css
Improve styling for table name truncation
frontend/packages/erd-core/src/features/erd/components/ERDRenderer/LeftPane/TableNameMenuButton/TableNameMenuButton.module.css
.tableName
styles for proper truncation..button
styles for responsive design.Additional Notes