Skip to content

Commit

Permalink
fix(dialog): maximizable responsive dialog (#13269)
Browse files Browse the repository at this point in the history
Fixed an issue where dialogs with `breakpoints` set were unable to successfully be maximized using the maximize button when `[maximizable]="true"`.
  • Loading branch information
joreyaesh committed Aug 26, 2023
1 parent db35290 commit 2cf65b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/dialog/dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy {
for (let breakpoint in this.breakpoints) {
innerHTML += `
@media screen and (max-width: ${breakpoint}) {
.p-dialog[${this.id}] {
.p-dialog[${this.id}]:not(.p-dialog-maximized) {
width: ${this.breakpoints[breakpoint]} !important;
}
}
Expand Down

1 comment on commit 2cf65b7

@vercel
Copy link

@vercel vercel bot commented on 2cf65b7 Aug 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.