Calculate class more explicitly & separately to fix horizontal table cell alignment issue #3252
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.
In this PR I fixed an issue with horizontal alignment not propagating to children of table text cells. It fixed the original case, but customer mentioned another situation still showed the problem.
I don't think the fix is wrong, the prior PR should also correctly target the new case the user mentioned. Instead I think the problem is tailwind being flaky, it's known that inline calculation of classes can cause the classes not to show up in the compiled css. This pr's change made the css apply locally, I'll test once it actually goes through to make sure it's the same case in prod.
~ should close https://linear.app/gitbook-x/issue/RND-6658/annotations-in-table-cells-with-multi-line-text-makes-it-center
before:
after: