mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
34 changed files with 187 additions and 67 deletions
@ -1,17 +0,0 @@ |
|||||
import { AssetProfilesModule } from '@ghostfolio/api/app/endpoints/asset-profiles/asset-profiles.module'; |
|
||||
import { TransformDataSourceInRequestModule } from '@ghostfolio/api/interceptors/transform-data-source-in-request/transform-data-source-in-request.module'; |
|
||||
import { TransformDataSourceInResponseModule } from '@ghostfolio/api/interceptors/transform-data-source-in-response/transform-data-source-in-response.module'; |
|
||||
|
|
||||
import { Module } from '@nestjs/common'; |
|
||||
|
|
||||
import { AssetController } from './asset.controller'; |
|
||||
|
|
||||
@Module({ |
|
||||
controllers: [AssetController], |
|
||||
imports: [ |
|
||||
AssetProfilesModule, |
|
||||
TransformDataSourceInRequestModule, |
|
||||
TransformDataSourceInResponseModule |
|
||||
] |
|
||||
}) |
|
||||
export class AssetModule {} |
|
||||
@ -1,7 +1,10 @@ |
|||||
@if (deviceType === 'mobile') { |
@if (deviceType === 'mobile') { |
||||
<div class="d-flex justify-content-center" mat-dialog-actions> |
<div class="d-flex justify-content-center" mat-dialog-actions> |
||||
<button mat-button (click)="onClickCloseButton()"> |
<button mat-icon-button (click)="onClickCloseButton()"> |
||||
<ion-icon name="close" size="large" /> |
<ion-icon |
||||
|
class="d-block mat-icon text-body-secondary" |
||||
|
name="close-outline" |
||||
|
/> |
||||
</button> |
</button> |
||||
</div> |
</div> |
||||
} |
} |
||||
|
|||||
@ -1,3 +1,7 @@ |
|||||
:host { |
:host { |
||||
display: block; |
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 |
<span |
||||
class="flex-grow-1 text-truncate" |
class="flex-grow-1 text-truncate" |
||||
[class.text-center]="position() === 'center'" |
[class.text-center]="position() === 'center'" |
||||
>{{ title() }}</span |
>{{ title() }}</span |
||||
> |
> |
||||
@if (deviceType() !== 'mobile') { |
@if (deviceType() !== 'mobile') { |
||||
<button class="no-min-width px-0" mat-button (click)="onClickCloseButton()"> |
<button mat-icon-button (click)="onClickCloseButton()"> |
||||
<ion-icon name="close" size="large" /> |
<ion-icon |
||||
|
class="d-block mat-icon text-body-secondary" |
||||
|
name="close-outline" |
||||
|
/> |
||||
</button> |
</button> |
||||
} |
} |
||||
</div> |
</div> |
||||
|
|||||
@ -1,3 +1,14 @@ |
|||||
:host { |
:host { |
||||
display: block; |
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