-
+
+
+
@@ -370,7 +372,7 @@ export default {
computed: {
containerClass() {
return [
- 'p-column-filter', {
+ 'p-column-filter p-fluid', {
'p-column-filter-row': this.display === 'row',
'p-column-filter-menu': this.display === 'menu'
}
diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue
index 94bfa04dc..a1097d4c5 100755
--- a/src/components/datatable/DataTable.vue
+++ b/src/components/datatable/DataTable.vue
@@ -2033,6 +2033,11 @@ export default {
border: 1px solid transparent;
}
+.p-column-header-content {
+ display: flex;
+ align-items: center;
+}
+
.p-datatable .p-column-resizer-helper {
width: 1px;
position: absolute;
@@ -2084,9 +2089,10 @@ export default {
.p-column-filter-menu {
display: inline-flex;
+ margin-left: auto;
}
-.p-column-filter-row p-columnfilterformelement {
+.p-column-filter-row .p-column-filter-element {
flex: 1 1 auto;
width: 1%;
}
diff --git a/src/components/datatable/TableHeader.vue b/src/components/datatable/TableHeader.vue
index 803bc6fa2..20093e6b7 100755
--- a/src/components/datatable/TableHeader.vue
+++ b/src/components/datatable/TableHeader.vue
@@ -9,16 +9,18 @@
@dragstart="onColumnHeaderDragStart($event)" @dragover="onColumnHeaderDragOver($event)" @dragleave="onColumnHeaderDragLeave($event)" @drop="onColumnHeaderDrop($event)"
:colspan="columnProp(col, 'colspan')" :rowspan="columnProp(col, 'rowspan')" :aria-sort="getAriaSort(col)">
-
-
{{columnProp(col, 'header')}}
-
-
{{getMultiSortMetaIndex(col) + 1}}
-
-
+
+
+ {{columnProp(col, 'header')}}
+
+ {{getMultiSortMetaIndex(col) + 1}}
+
+
+
diff --git a/src/views/datatable/DataTableFilterDemo.vue b/src/views/datatable/DataTableFilterDemo.vue
index 6958bd4a2..bec1e8ae3 100755
--- a/src/views/datatable/DataTableFilterDemo.vue
+++ b/src/views/datatable/DataTableFilterDemo.vue
@@ -108,7 +108,7 @@