8000 fix(table-text): updated truncate value by mattnolting · Pull Request #7175 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

fix(table-text): updated truncate value#7175

Merged
mcoker merged 2 commits intopatternfly:mainfrom
mattnolting:fix-table-truncate-7172
Nov 21, 2024
Merged

fix(table-text): updated truncate value#7175
mcoker merged 2 commits intopatternfly:mainfrom
mattnolting:fix-table-truncate-7172

Conversation

@mattnolting
Copy link
Collaborator
@mattnolting mattnolting commented Oct 24, 2024

fixes #7172

TLDR:

max(var(--#{$table}--m-truncate__text--MinWidth), var(--#{$table}--m-truncate--cell--MaxWidth)); sets table__text.m-truncate to accept larger of the two values, assuring that truncated text is always at least 5ch long and at max 100%.

Link: https://patternfly-pr-7175.surge.sh/components/table

BackstopJS Report table text.pdf

@mattnolting mattnolting requested a review from mcoker October 24, 2024 17:02
@patternfly-build
Copy link
Collaborator
patternfly-build commented Oct 24, 2024

Copy link
Member
@srambach srambach left a comment

Choose a reason for hiding this comment

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

I like this change. I'm wondering if this example needs some love though? It looks like it's lost its space between the two columns.

image

Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

Doesn't appear to be working in the preview?
Screenshot 2024-11-06 at 2 53 49 PM

Screenshot 2024-11-06 at 2 52 33 PM

@mattnolting mattnolting force-pushed the fix-table-truncate-7172 branch from 595f49f to c7c716e Compare November 13, 2024 19:13
@mattnolting mattnolting force-pushed the fix-table-truncate-7172 branch from c7c716e to 8e4be38 Compare November 21, 2024 17:18
@mattnolting mattnolting force-pushed the fix-table-truncate-7172 branch from 8e4be38 to d05f4fe Compare November 21, 2024 17:20
Copy link
Member
@srambach srambach left a comment

Choose a reason for hiding this comment

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

Looks like it's working as expected now.

Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

🚀

@mcoker mcoker merged commit 2be9711 into patternfly:main Nov 21, 2024
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.1.0-prerelease.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text in a table column is truncated when it ought not be

5 participants

0