diff --git a/packages/kotti-ui/source/kotti-table/KtTable.vue b/packages/kotti-ui/source/kotti-table/KtTable.vue index f5c3b809d..448869592 100644 --- a/packages/kotti-ui/source/kotti-table/KtTable.vue +++ b/packages/kotti-ui/source/kotti-table/KtTable.vue @@ -1,144 +1,161 @@ @@ -309,10 +326,10 @@ export default defineComponent({ })), ), tableClasses: computed(() => ({ - 'kt-table': true, - 'kt-table--is-drag-and-drop-active': + 'kt-table-container': true, + 'kt-table-container--is-drag-and-drop-active': tableContext.value.internal.isDragAndDropActive, - 'kt-table--is-scrollable': !props.isNotScrollable, + 'kt-table-container--is-scrollable': !props.isNotScrollable, })), table, tableContext: computed(() => tableContext.value), @@ -336,7 +353,18 @@ export default defineComponent({ } .kt-table { - &--is-scrollable { + position: relative; + + .kt-table-loading-overlay { + position: absolute; + left: 0; + top: 44px; // move overlay down 44px so only rows are show in the hover state, not the header + width: 100%; + height: calc(100% - 44px); + background-color: rgb(0 0 0 / 20%); + } + + .kt-table-container--is-scrollable { overflow-x: scroll; white-space: nowrap; } @@ -539,7 +567,9 @@ export default defineComponent({ } // disable hover when drag and drop is active, otherwise drag and drop specific styles won't show - &:not(.kt-table--is-drag-and-drop-active) thead .kt-table-cell--is-header { + &:not(.kt-table-container--is-drag-and-drop-active) + thead + .kt-table-cell--is-header { &.kt-table-cell--is-sortable:hover, &[draggable='true']:hover { color: var(--gray-60);