-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Making TableView cell content fill 100% width of its cell #2042
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a05e172
making TableView cell content fill 100% width
LFDanLu e4ab678
updating approach to fix text truncation
LFDanLu bd5b51d
fixing where min-width is applied for table cell contents
LFDanLu 8089dde
changing table child styles so user has to provide alignment and text…
LFDanLu 162a4df
fixing lint
LFDanLu 4a5492f
Merge branch 'main' into issue_1865
LFDanLu 61b108a
cleaning up story
LFDanLu ba6b661
Merge branch 'issue_1865' of github.com:adobe/react-spectrum into iss…
LFDanLu 319a48a
Merge branch 'main' into issue_1865
LFDanLu 3915979
Merge branch 'main' into issue_1865
LFDanLu 94a9355
addressing review comments
LFDanLu a3b9427
Merge branch 'main' into issue_1865
LFDanLu bd00d75
Merge branch 'main' into issue_1865
LFDanLu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -626,6 +626,7 @@ function TableCell({cell}) { | |
| stylesOverrides, | ||
| 'react-spectrum-Table-cell', | ||
| { | ||
| 'react-spectrum-Table-cell--alignStart': columnProps.align === 'start', | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added for consistency |
||
| 'react-spectrum-Table-cell--alignCenter': columnProps.align === 'center', | ||
| 'react-spectrum-Table-cell--alignEnd': columnProps.align === 'end' | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,11 +27,18 @@ | |
| height: 100%; | ||
| } | ||
|
|
||
| .react-spectrum-Table-cell--alignStart { | ||
| text-align: start; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. adding text-align so we handle alignment if user passes in spans as the cell content |
||
| justify-content: start; | ||
| } | ||
|
|
||
| .react-spectrum-Table-cell--alignCenter { | ||
| text-align: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .react-spectrum-Table-cell--alignEnd { | ||
| text-align: end; | ||
| justify-content: flex-end; | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.