From 3748b2dcc71969ea60486c630b679cac5b02bed4 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 2 Mar 2021 10:52:56 +0300 Subject: [PATCH] Fixed #1039 - Breakpoints to OverlayPanel --- src/components/datatable/DataTable.vue | 2 +- src/components/overlaypanel/OverlayPanel.d.ts | 1 + src/components/overlaypanel/OverlayPanel.vue | 46 ++++++++++++++++++- src/views/overlaypanel/OverlayPanelDemo.vue | 4 +- src/views/overlaypanel/OverlayPanelDoc.vue | 17 +++++++ 5 files changed, 65 insertions(+), 5 deletions(-) diff --git a/src/components/datatable/DataTable.vue b/src/components/datatable/DataTable.vue index 23d5bf578..9be350a21 100755 --- a/src/components/datatable/DataTable.vue +++ b/src/components/datatable/DataTable.vue @@ -1598,7 +1598,7 @@ export default { .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td { display: flex; - width: 100%; + width: 100% !important; align-items: center; justify-content: space-between; } diff --git a/src/components/overlaypanel/OverlayPanel.d.ts b/src/components/overlaypanel/OverlayPanel.d.ts index ba4014c34..d1adfd808 100755 --- a/src/components/overlaypanel/OverlayPanel.d.ts +++ b/src/components/overlaypanel/OverlayPanel.d.ts @@ -7,6 +7,7 @@ interface OverlayPanelProps { baseZIndex?: number; autoZIndex?: boolean; ariaCloseLabel?: string; + breakpoints?: {[key: string]: string}; } declare class OverlayPanel { diff --git a/src/components/overlaypanel/OverlayPanel.vue b/src/components/overlaypanel/OverlayPanel.vue index 21930fc79..381e0a360 100755 --- a/src/components/overlaypanel/OverlayPanel.vue +++ b/src/components/overlaypanel/OverlayPanel.vue @@ -14,8 +14,7 @@