Skip to content

Commit

Permalink
feat: add sticky headers
Browse files Browse the repository at this point in the history
  • Loading branch information
pirhoo committed Oct 23, 2024
1 parent 2cafc85 commit 03a1336
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/Document/DocumentEntries/DocumentEntriesGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,19 @@ defineProps({
</div>
</div>
</template>

<style lang="scss" scoped>
.document-entries-grid {
position: relative;
&__header {
background: var(--bs-body-bg);
position: sticky;
top: 0;
z-index: 10;
min-width: 0;
max-width: 100%;
width: 100%;
}
}
</style>
16 changes: 16 additions & 0 deletions src/components/Document/DocumentEntries/DocumentEntriesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,19 @@ const sortedProperties = computed(() => {
</page-table>
</div>
</template>

<style lang="scss" scoped>
.document-entries-table {
position: relative;
&__header {
background: var(--bs-body-bg);
position: sticky;
top: 0;
z-index: 10;
min-width: 0;
max-width: 100%;
width: 100%;
}
}
</style>

0 comments on commit 03a1336

Please sign in to comment.