Skip to content

Commit

Permalink
Fix css issues in DynamicDataTable (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminCharmes authored Oct 11, 2024
1 parent d829102 commit 137fc10
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions webapp/src/components/DynamicDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -353,36 +353,46 @@ export default {
</script>

<style scoped>
.customize-table .ag-header {
font-size: 1rem;
:deep .p-datatable-column-header-content .p-datatable-sort-icon {
visibility: hidden !important;
}
.p-datatable-column-header-content .p-datatable-sort-icon {
visibility: hidden !important;
:deep
.p-datatable-column-header-content[data-pc-section="columnheadercontent"]
.p-datatable-sort-icon[sorted="true"] {
visibility: visible !important;
}
.p-datatable-column-header-content:hover .p-datatable-sort-icon {
:deep .p-datatable-header-cell:hover .p-datatable-column-header-content .p-datatable-sort-icon {
visibility: visible !important;
}
.p-datatable .p-datatable-tbody > tr > td {
:deep .p-datatable .p-datatable-tbody > tr > td {
min-width: 1em;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.p-datatable .p-datatable-thead > tr > th {
:deep .p-datatable .p-datatable-thead > tr > th {
min-width: 1em;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.p-datatable-header-cell.filter-active svg {
:deep .p-datatable-header-cell.filter-active svg {
color: #10b981;
}
.p-datatable-header-cell.filter-active {
:deep .p-datatable-header-cell.filter-active {
color: #047857;
}
:deep .p-datatable-thead th {
padding: 0.5rem !important;
}
:deep .p-datatable-tbody tr td {
padding: 0.5rem !important;
}
</style>

0 comments on commit 137fc10

Please sign in to comment.