Skip to content

Commit

Permalink
Merge pull request #1768 from plotly/revert-1753-dash-table/column-width
Browse files Browse the repository at this point in the history
Revert "Fit column width to child elements"
  • Loading branch information
chriddyp authored Sep 20, 2021
2 parents 79bc6ba + 7603087 commit 17ca5c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 deletions components/dash-table/src/dash-table/components/Table/Table.less
Original file line number Diff line number Diff line change
Expand Up @@ -504,18 +504,13 @@
th {
white-space: nowrap;

.column-header {
display: flex;
justify-content: space-between;

&--clear,
&--delete,
&--edit,
&--hide,
&--sort {
.not-selectable();
cursor: pointer;
}
.column-header--clear,
.column-header--delete,
.column-header--edit,
.column-header--hide,
.column-header--sort {
.not-selectable();
cursor: pointer;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ function getter(
);

return (
<div className='column-header'>
<div>
{!column_selectable || !selectable ? null : (
<span className='column-header--select'>
<input
Expand Down

0 comments on commit 17ca5c0

Please sign in to comment.