Skip to content

Commit

Permalink
Fix sticky table header inside table block
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Nov 29, 2023
1 parent 6805e04 commit cb7d407
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions panel/lab/components/blocks/table/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
</k-lab-example>
</k-lab-examples>
</template>

<style>
.k-lab-examples {
padding-bottom: 100rem;
}
</style>
4 changes: 1 addition & 3 deletions panel/src/components/Forms/Blocks/Types/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,8 @@ export default {
border: 1px solid var(--color-gray-300);
border-spacing: 0;
border-radius: var(--rounded-sm);
overflow: hidden;
}
.k-block-type-table-preview td,
.k-block-type-table-preview th {
.k-block-type-table-preview :where(th, td) {
text-align: start;
line-height: 1.5em;
font-size: var(--text-sm);
Expand Down

0 comments on commit cb7d407

Please sign in to comment.