Thank you for taking the time to read this.
I'm currently trying to create a dialog box with a specific size of 90% in width, but I'm facing some challenges in achieving this. Can anyone guide me in the right direction or just provide me with the solution?
I believe the size needs to be defined when calling the box, as shown below:
readMe({title,img,date,content}:Blog):void{
const dialogConfig = new MatDialogConfig();
dialogConfig.data = {
title,
img,
date,
content,
};
const dialogRef=this.dialog.open(BlogPostComponent,dialogConfig);
}
Thank you in advance for your help.