Feature/refactor dialog footer and header components (#5445)
* Refactor dialog footer and header components * Update changelogpull/5455/head
parent
d45cef1725
commit
0d5adfb998
@ -1,5 +1,7 @@
|
||||
@if (deviceType === 'mobile') {
|
||||
<button mat-button (click)="onClickCloseButton()">
|
||||
<ion-icon name="close" size="large" />
|
||||
</button>
|
||||
<div class="d-flex justify-content-center" mat-dialog-actions>
|
||||
<button mat-button (click)="onClickCloseButton()">
|
||||
<ion-icon name="close" size="large" />
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
|
||||
@ -1,9 +1,3 @@
|
||||
:host {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
min-height: 0;
|
||||
|
||||
@media (min-width: 576px) {
|
||||
padding: 0 !important;
|
||||
}
|
||||
display: block;
|
||||
}
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
<span
|
||||
class="flex-grow-1 text-truncate"
|
||||
[ngClass]="{ 'text-center': position === 'center' }"
|
||||
>{{ title }}</span
|
||||
>
|
||||
@if (deviceType !== 'mobile') {
|
||||
<button class="no-min-width px-0" mat-button (click)="onClickCloseButton()">
|
||||
<ion-icon name="close" size="large" />
|
||||
</button>
|
||||
}
|
||||
<div class="d-flex" mat-dialog-title>
|
||||
<span
|
||||
class="flex-grow-1 text-truncate"
|
||||
[ngClass]="{ 'text-center': position === 'center' }"
|
||||
>{{ title }}</span
|
||||
>
|
||||
@if (deviceType !== 'mobile') {
|
||||
<button class="no-min-width px-0" mat-button (click)="onClickCloseButton()">
|
||||
<ion-icon name="close" size="large" />
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
:host {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
display: block;
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue