mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
7 changed files with 41 additions and 9 deletions
@ -1,7 +1,10 @@ |
|||
@if (deviceType === 'mobile') { |
|||
<div class="d-flex justify-content-center" mat-dialog-actions> |
|||
<button mat-button (click)="onClickCloseButton()"> |
|||
<ion-icon name="close" size="large" /> |
|||
<button mat-icon-button (click)="onClickCloseButton()"> |
|||
<ion-icon |
|||
class="d-block mat-icon text-body-secondary" |
|||
name="close-outline" |
|||
/> |
|||
</button> |
|||
</div> |
|||
} |
|||
|
|||
@ -1,3 +1,7 @@ |
|||
:host { |
|||
display: block; |
|||
|
|||
button[mat-icon-button] { |
|||
--mat-icon-button-touch-target-display: block; |
|||
} |
|||
} |
|||
|
|||
@ -1,12 +1,19 @@ |
|||
<div class="d-flex" mat-dialog-title> |
|||
<div |
|||
class="d-flex" |
|||
mat-dialog-title |
|||
[class.with-close-button]="deviceType() !== 'mobile'" |
|||
> |
|||
<span |
|||
class="flex-grow-1 text-truncate" |
|||
[class.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 mat-icon-button (click)="onClickCloseButton()"> |
|||
<ion-icon |
|||
class="d-block mat-icon text-body-secondary" |
|||
name="close-outline" |
|||
/> |
|||
</button> |
|||
} |
|||
</div> |
|||
|
|||
@ -1,3 +1,14 @@ |
|||
:host { |
|||
display: block; |
|||
|
|||
button[mat-icon-button] { |
|||
margin-right: -0.8125rem; |
|||
margin-top: 0.125rem; |
|||
} |
|||
|
|||
.with-close-button { |
|||
.text-center { |
|||
padding-left: 0.9375rem; |
|||
} |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue