-
Notifications
You must be signed in to change notification settings - Fork 87
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(v2): fix overflow in workspace row #4069
Conversation
@@ -13,7 +13,7 @@ export const CollaboratorText: FC = ({ children }) => { | |||
<Text | |||
textStyle={{ base: 'subhead-1', md: 'body-2' }} | |||
color={{ base: 'secondary.700', md: 'secondary.500' }} | |||
isTruncated | |||
noOfLines={{ base: 0, md: 1 }} |
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.
If this is truncated, is there any other way to see the full emails of existing collaborators?
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.
good point. added a title
; hovering the row would now display the full email.
@@ -32,7 +32,7 @@ export const FieldLogicBadge = ({ field }: FieldLogicBadgeProps) => { | |||
<Icon as={fieldMeta.icon} fontSize="1rem" /> | |||
</Tooltip> | |||
{field.questionNumber ? <Text>{field.questionNumber}.</Text> : null} | |||
<Text isTruncated>{field.title}</Text> | |||
<Text noOfLines={1}>{field.title}</Text> |
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.
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.
no clue, preserving current behavior. can always fix in a new issue.
@@ -32,7 +32,7 @@ export const FieldLogicBadge = ({ field }: FieldLogicBadgeProps) => { | |||
<Icon as={fieldMeta.icon} fontSize="1rem" /> | |||
</Tooltip> | |||
{field.questionNumber ? <Text>{field.questionNumber}.</Text> : null} | |||
<Text isTruncated>{field.title}</Text> | |||
<Text noOfLines={1}>{field.title}</Text> |
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.
unrelated to this PR: should fix delete box overlapping with long field title, regardless of truncated or not. For reference:
edit: created issue #4076
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.
lgtm!
Problem
Extremely long form titles were resulting in incorrect overflow of the page. This PR fixes that bug.
Also replace deprecated usage of
isTruncated
prop and replace them with thenoOfLine
prop.Solution
Breaking Changes
Improvements:
Bug Fixes:
Before & After Screenshots
BEFORE:
AFTER: