Skip to content
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(FileDetails/FileDetailsLabel): Adjust chip width #261

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

rebeccaalpert
Copy link
Member

We were relying on the default PatternFly label behavior for long titles. Mark raised a concern that this will cause problems in the future when we enable multiple file uploads. This PR adjusts the chip so it has text truncation and a max width. The loading state should also look a little more consistent when titles are long.

Screenshot 2024-10-22 at 4 01 04 PM

Modals use the same text treatment, meaning that they will have truncation.

Short title:
Screenshot 2024-10-22 at 4 06 20 PM

Long title:
Screenshot 2024-10-22 at 3 57 35 PM

@rebeccaalpert rebeccaalpert linked an issue Oct 22, 2024 that may be closed by this pull request
@patternfly-build
Copy link

patternfly-build commented Oct 22, 2024

Copy link

@kaylachumley kaylachumley left a comment

Choose a reason for hiding this comment

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

Makes sense! Looks fine to me! thankss

@nicolethoen
Copy link
Contributor

@rebeccaalpert needs rebase

We were relying on the default PatternFly label behavior for long titles. Mark raised a concern that this will cause problems in the future when we enable multiple file uploads. This PR adjusts the chip so it has text truncation and a max width.
@rebeccaalpert
Copy link
Member Author

Should be all set @nicolethoen!

@nicolethoen nicolethoen merged commit 733a4c9 into patternfly:main Nov 4, 2024
5 checks passed
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.

Attachment chip exceeds desirable width
4 participants