-
Notifications
You must be signed in to change notification settings - Fork 120
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 overflow ensuring visibility and proper positioning of action buttons in WidgetHeader component #78
Conversation
|
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.
Trimmed the CSS to just want works
@@ -35,13 +35,15 @@ export function WidgetHeader({ | |||
|
|||
return ( | |||
<div className="flex justify-between items-start w-full"> | |||
<div className="flex flex-1 w-full gap-2"> | |||
<div className="flex flex-1 items-center overflow-hidden w-full gap-2"> |
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.
<div className="flex flex-1 items-center overflow-hidden w-full gap-2"> | |
<div className="flex flex-1 overflow-hidden w-full gap-2"> |
{setting && ( | ||
<SortableKnob> | ||
<GrabIcon width={18} /> | ||
</SortableKnob> | ||
)} | ||
<p className="truncate w-[calc(100%-1px)]">{title} TODO</p> | ||
<p className="truncate max-w-[calc(100%-5px)] w-full "> |
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.
<p className="truncate max-w-[calc(100%-5px)] w-full "> | |
<p className="truncate"> |
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
when the title attains a certain length it pushes the the action button out of the box which distort the UI and positioning of the action button
Issue Number: N/A
What is the new behavior?
it has been enhanced to hide the overflow of the truncated value when it has overflowed a certain fixed width.
Does this introduce a breaking change?
Other information