File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed
Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ export function TableHeaderCell<ItemType>({
128128 focusedComponent = { focusedComponent }
129129 stuck = { stuck }
130130 sticky = { sticky }
131+ resizable = { resizableColumns }
131132 hidden = { hidden }
132133 stripedRows = { stripedRows }
133134 colIndex = { colIndex }
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ settings icon in the pagination slot.
224224 @include cell-offset (awsui .$space-xxs );
225225 }
226226
227- & :last-child .header-cell-sortable {
227+ & :last-child .header-cell-sortable :not ( .header-cell-resizable ) {
228228 padding-inline-end : awsui .$space-xxxs ;
229229 }
230230
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ export interface TableThElementProps {
2525 focusedComponent ?: null | string ;
2626 stuck ?: boolean ;
2727 sticky ?: boolean ;
28+ resizable ?: boolean ;
2829 hidden ?: boolean ;
2930 stripedRows ?: boolean ;
3031 isSelection ?: boolean ;
@@ -46,6 +47,7 @@ export function TableThElement({
4647 focusedComponent,
4748 stuck,
4849 sticky,
50+ resizable,
4951 hidden,
5052 stripedRows,
5153 isSelection,
@@ -79,6 +81,7 @@ export function TableThElement({
7981 styles [ 'header-cell' ] ,
8082 styles [ `header-cell-variant-${ variant } ` ] ,
8183 sticky && styles [ 'header-cell-sticky' ] ,
84+ resizable && styles [ 'header-cell-resizable' ] ,
8285 stuck && styles [ 'header-cell-stuck' ] ,
8386 stripedRows && styles [ 'has-striped-rows' ] ,
8487 isVisualRefresh && styles [ 'is-visual-refresh' ] ,
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ export function Resizer({
231231 data-focus-id = { focusId }
232232 />
233233 < span
234- className = { clsx ( styles . divider , isDragging && styles [ 'divider-active' ] ) }
234+ className = { clsx ( styles [ ' divider-interactive' ] , isDragging && styles [ 'divider-active' ] ) }
235235 data-awsui-table-suppress-navigation = { true }
236236 ref = { resizerSeparatorRef }
237237 id = { separatorId }
Original file line number Diff line number Diff line change 1616$handle-width : awsui .$space-xl ;
1717$active-separator-width : 2px ;
1818
19- th :not (:last-child ) > .divider {
19+ th :not (:last-child ) > .divider ,
20+ .divider-interactive {
2021 $gap : calc (2 * #{awsui .$space-xs } + #{awsui .$space-xxxs } );
2122
2223 position : absolute ;
@@ -59,10 +60,6 @@ th:not(:last-child) > .divider {
5960 .resize-active & {
6061 pointer-events : none ;
6162 }
62- th :last-child > & {
63- inline-size : calc (#{$handle-width } / 2 );
64- inset-inline-end : 0 ;
65- }
6663 & :hover + .divider {
6764 border-inline-start : $active-separator-width solid awsui .$color-border-divider-active ;
6865 }
You can’t perform that action at this time.
0 commit comments