Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/make system message expandable (#1861)

Thomas Kaul8a3a6308a358
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1e572e30c9..77e804f592 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
+### Added
+
+- Made the system message expandable
+
### Changed
- Skipped creating queue jobs for asset profiles with `MANUAL` data source not having a scraper configuration
diff --git a/apps/client/src/app/app.component.html b/apps/client/src/app/app.component.html
index cdf0ba6b5f..a832b84997 100644
--- a/apps/client/src/app/app.component.html
+++ b/apps/client/src/app/app.component.html
@@ -31,7 +31,8 @@
>
<div
*ngIf="!canCreateAccount && info?.systemMessage && user"
- class="d-inline-block info-message px-3 py-2"
+ class="cursor-pointer d-inline-block info-message px-3 py-2 text-truncate"
+ (click)="onShowSystemMessage()"
>
{{ info.systemMessage }}
</div>
diff --git a/apps/client/src/app/app.component.scss b/apps/client/src/app/app.component.scss
index 6d6ac06394..20e455ccd7 100644
--- a/apps/client/src/app/app.component.scss
+++ b/apps/client/src/app/app.component.scss
@@ -13,9 +13,10 @@
margin-top: -0.5rem;
.info-message {
- background-color: rgba(0, 0, 0, $alpha-hover);
+ background-color: rgba(var(--palette-foreground-text), 0.05);
border-radius: 2rem;
font-size: 80%;
+ max-width: 100%;
.a {
color: rgba(var(--palette-primary-500), 1);
@@ -30,3 +31,13 @@
line-height: 1;
}
}
+
+:host-context(.is-dark-theme) {
+ main {
+ .info-message-container {
+ .info-message {
+ background-color: rgba(var(--palette-foreground-text-dark), 0.05);
+ }
+ }
+ }
+}
diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts
index d2369ddac6..2fc84b6aa4 100644
--- a/apps/client/src/app/app.component.ts
+++ b/apps/client/src/app/app.component.ts
@@ -100,6 +100,10 @@ export class AppComponent implements OnDestroy, OnInit {
this.tokenStorageService.signOut();
}
+ public onShowSystemMessage() {
+ alert(this.info.systemMessage);
+ }
+
public onSignOut() {
this.tokenStorageService.signOut();
this.userService.remove();