diff --git a/booklore-ui/src/app/live-notification-box/live-notification-box.component.html b/booklore-ui/src/app/live-notification-box/live-notification-box.component.html
new file mode 100644
index 000000000..f80cabec9
--- /dev/null
+++ b/booklore-ui/src/app/live-notification-box/live-notification-box.component.html
@@ -0,0 +1,5 @@
+
+
{{latestEvent.timestamp}}
+
{{latestEvent.message}}
+
+
diff --git a/booklore-ui/src/app/live-notification-box/live-notification-box.component.scss b/booklore-ui/src/app/live-notification-box/live-notification-box.component.scss
new file mode 100644
index 000000000..8b1378917
--- /dev/null
+++ b/booklore-ui/src/app/live-notification-box/live-notification-box.component.scss
@@ -0,0 +1 @@
+
diff --git a/booklore-ui/src/app/live-notification-box/live-notification-box.component.ts b/booklore-ui/src/app/live-notification-box/live-notification-box.component.ts
new file mode 100644
index 000000000..d7b3e1963
--- /dev/null
+++ b/booklore-ui/src/app/live-notification-box/live-notification-box.component.ts
@@ -0,0 +1,25 @@
+import {Component, Input} from '@angular/core';
+import {LogNotification} from '../shared/websocket/model/log-notification.model';
+import {EventService} from '../shared/websocket/event.service';
+
+@Component({
+ selector: 'app-live-notification-box',
+ standalone: true,
+ templateUrl: './live-notification-box.component.html',
+ styleUrl: './live-notification-box.component.scss',
+ host: {
+ class: 'config-panel hidden'
+ },
+})
+export class LiveNotificationBoxComponent {
+
+ latestEvent: LogNotification = {message: 'No recent notifications...'};
+
+ constructor(private eventService: EventService) {
+
+ this.eventService.latestEvent$.subscribe(event => {
+ this.latestEvent = event;
+ });
+ }
+
+}
diff --git a/booklore-ui/src/assets/layout/styles/layout/_topbar.scss b/booklore-ui/src/assets/layout/styles/layout/_topbar.scss
index c692fb4c1..0905d8bf3 100644
--- a/booklore-ui/src/assets/layout/styles/layout/_topbar.scss
+++ b/booklore-ui/src/assets/layout/styles/layout/_topbar.scss
@@ -205,7 +205,7 @@
.config-panel {
position: absolute;
- top: calc(100% + 2px);
+ top: calc(100% + 4px);
inset-inline-end: 0;
width: 18rem;
padding: .75rem;
@@ -215,6 +215,14 @@
transform-origin: top;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
+ &.notification-box {
+ width: 30rem;
+ background-color: var(--card-background);
+ border: 0.25px solid var(--primary-color);
+ border-radius: 4px;
+ min-height: 5rem;
+ }
+
.config-panel-content {
display: flex;
flex-direction: column;
@@ -262,61 +270,6 @@
}
}
- .version-item {
- width: auto;
- padding: 0.5rem;
-
- .version-text {
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .version-icon {
- margin-left: .25rem;
- color: var(--text-secondary-color);
- }
- }
-
- .versions-panel {
- padding: .25rem;
- background-color: var(--overlay-background);
- position: absolute;
- right: 0;
- top: calc(100% + 2px);
- border-radius: 6px;
- border: 1px solid var(--border-color);
- box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
- transform-origin: top;
-
- ul {
- padding: 0;
- margin: 0;
- list-style-type: none;
- display: flex;
- flex-direction: column;
- gap: 4px;
-
- li {
- margin: 2px;
-
- }
-
- a {
- display: inline-flex;
- padding: 0.5rem .75rem;
- border-radius: 6px;
- width: 100%;
- overflow: hidden;
- color: var(--text-color);
- white-space: nowrap;
-
- &:hover {
- background-color: var(--hover-background);
- }
- }
- }
- }
}
.topbar-right-items {