Skip to content

Commit

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

.column-header--clear,
.column-header--delete,
.column-header--edit,
.column-header--hide,
.column-header--sort {
.not-selectable();
cursor: pointer;
.column-header {
display: flex;
justify-content: space-between;

&--clear,
&--delete,
&--edit,
&--hide,
&--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>
<div className='column-header'>
{!column_selectable || !selectable ? null : (
<span className='column-header--select'>
<input
Expand Down

0 comments on commit 79bc6ba

Please sign in to comment.