Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
chore(frontend): make top-center notification width content-aware
johavena226bd1b5aa1
diff --git a/frontend/src/app/layout/layout.service.ts b/frontend/src/app/layout/layout.service.tsindex 9a2ba16a..91c92edc 100644--- a/frontend/src/app/layout/layout.service.ts+++ b/frontend/src/app/layout/layout.service.ts@@ -241,10 +241,14 @@ export class LayoutService {if (this.electron.enabled) {this.electron.sendMessage(this.translateString(title), `${this.translateString(message)} - ${errorMessage}`)} else {- return this.toastr[type](`${this.translateString(message)}<br>${errorMessage}`, this.translateString(title), {- ...override,- enableHtml: true- })+ return this.toastr[type](+ `<div class="fw-bold">${this.translateString(message)}</div><div class="mt-2">${errorMessage}</div>`,+ this.translateString(title),+ {+ ...override,+ enableHtml: true+ }+ )}}if (this.electron.enabled) {diff --git a/frontend/src/styles/components/_notifications.scss b/frontend/src/styles/components/_notifications.scssindex fa365c6f..7a1e7061 100644--- a/frontend/src/styles/components/_notifications.scss+++ b/frontend/src/styles/components/_notifications.scss@@ -44,9 +44,11 @@}}-.ngx-toastr {- min-width: 320px !important;- //width: auto !important+.toast-container.toast-top-center .ngx-toastr,+.toast-container.toast-bottom-center .ngx-toastr {+ width: fit-content !important;+ max-width: min(60ch, calc(100vw - 2rem)) !important;+ min-width: 240px;}//.toast-top-right {