简体   繁体   中英

How to position the angular material tabs edge to edge inside the angular material dialog in mobile view?

I have been trying to position the angular material tabs inside the angular material dialog but I am facing some issues, well they are positioned edge to edge in a web view inside a dialog but I cannot position them the similar way in a mobile view . Normally the mat-tabs are positioned edge to edge when then are used outside the dialog in both mobile and web view but it's not the same case while using them inside the angular material dialog. Below is the output the I am getting 在此处输入图像描述

As you can see they the tabs and its content are not edge to edge there is some white space on the right

I am also posting the expected output on mobile view above. 在此处输入图像描述

I am also adding the stackblitz link to the code. The link might not open in incognito mode so open it in a normal browser window
https://stackblitz.com/edit/angular-murusn?file=package.json

Help would be appreciated!!

Here you go...

Change the following:

.mat-dialog-container {
  padding: 0;
}

.mat-dialog-title {
  padding: 24px 24px 0 24px;
}

.mat-dialog-content {
  margin: 0;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM