-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: use min-width so Firefox respects applied column widths #9871
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
Changes from all commits
df19224
3f80e4a
50dc384
2856576
f25ca63
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -257,7 +257,7 @@ class TableCollection<T> extends BaseCollection<T> implements ITableCollection<T | |
| if (k == null) { | ||
| k = node.parentKey; | ||
| } | ||
|
|
||
| if (k != null && this.getItem(k)?.type === 'tablebody') { | ||
| return null; | ||
| } | ||
|
|
@@ -687,7 +687,9 @@ function TableInner({props, forwardedRef: ref, selectionState, collection}: Tabl | |
| style = { | ||
| ...style, | ||
| tableLayout: 'fixed', | ||
| width: 'fit-content' | ||
| // due to https://bugzilla.mozilla.org/show_bug.cgi?id=1959353, we can't use "fit-content". | ||
| // Causes the table columns to grow to fill the available space in Firefox, ignoring user set column widths | ||
| width: 'min-content' | ||
|
Contributor
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. Could you add a code comment pointing to the upstream issue? We may want to revisit this once it gets resolved. Also, for future reference, the reason why I didn't suggest the "extended" version of |
||
| }; | ||
| } | ||
| } | ||
|
|
||
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.
Can we adde a chromatic story as a test against this? we run against FF there, so should be reproducible
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.
added the RAC story to the S2 chromatic since we don't have a RAC chromatic. Would've just added a S2 story but our S2 table doesn't actually exhibit the original issue.