Skip to content

Commit

Permalink
Fix sticky table header inside blocks
Browse files Browse the repository at this point in the history
Fixes #6016
  • Loading branch information
distantnative committed Nov 29, 2023
1 parent 40eae8e commit 6805e04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/src/components/Layout/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default {
:root {
--header-color-back: var(--color-light);
--header-padding-block: var(--spacing-4);
--header-sticky-offset: calc(var(--scroll-top, 0rem) + 4rem);
--header-sticky-offset: calc(var(--scroll-top) + 4rem);
}
.k-header {
Expand Down Expand Up @@ -161,7 +161,7 @@ export default {
/** TODO: .k-header:has(.k-header-buttons) */
.k-header[data-has-buttons="true"] {
position: sticky;
top: var(--scroll-top, 0);
top: var(--scroll-top);
z-index: var(--z-toolbar);
}
</style>
4 changes: 4 additions & 0 deletions panel/src/components/View/Panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ export default {};
</script>

<style>
:root {
--scroll-top: 0rem;
}
html {
overflow-x: hidden;
overflow-y: scroll;
Expand Down

0 comments on commit 6805e04

Please sign in to comment.