diff --git a/booklore-ui/src/app/book/component/layout/app.topbar.component.html b/booklore-ui/src/app/book/component/layout/app.topbar.component.html
index 175f67609..ab5d9feb5 100644
--- a/booklore-ui/src/app/book/component/layout/app.topbar.component.html
+++ b/booklore-ui/src/app/book/component/layout/app.topbar.component.html
@@ -6,9 +6,17 @@
BookLore
-
+
+
-
+
-
diff --git a/booklore-ui/src/app/book/component/layout/app.topbar.component.ts b/booklore-ui/src/app/book/component/layout/app.topbar.component.ts
index 2c5459cc9..9a503f3ba 100644
--- a/booklore-ui/src/app/book/component/layout/app.topbar.component.ts
+++ b/booklore-ui/src/app/book/component/layout/app.topbar.component.ts
@@ -9,7 +9,7 @@ import {FormsModule} from '@angular/forms';
import {InputTextModule} from 'primeng/inputtext';
import {SearchComponent} from '../search/search.component';
import {FileUploadComponent} from '../file-upload/file-upload.component';
-import {NgIf} from '@angular/common';
+import {NgClass, NgIf} from '@angular/common';
import {EventService} from '../../service/event.service';
import {LogNotification} from '../../model/log-notification.model';
import {Button} from 'primeng/button';
@@ -29,7 +29,8 @@ import {StyleClass} from 'primeng/styleclass';
NgIf,
Button,
AppConfiguratorComponent,
- StyleClass
+ StyleClass,
+ NgClass
],
})
export class AppTopBarComponent implements OnDestroy {
@@ -54,6 +55,13 @@ export class AppTopBarComponent implements OnDestroy {
});
}
+ isMenuVisible: boolean = true;
+
+ toggleMenu() {
+ this.isMenuVisible = !this.isMenuVisible;
+ this.layoutService.onMenuToggle();
+ }
+
onMouseEnter() {
this.showEvents = true;
}
diff --git a/booklore-ui/src/app/book/component/layout/service/app.layout.service.ts b/booklore-ui/src/app/book/component/layout/service/app.layout.service.ts
index 812b8ad6c..97f251a81 100644
--- a/booklore-ui/src/app/book/component/layout/service/app.layout.service.ts
+++ b/booklore-ui/src/app/book/component/layout/service/app.layout.service.ts
@@ -90,17 +90,6 @@ export class LayoutService {
}
}
- showProfileSidebar() {
- this.state.profileSidebarVisible = !this.state.profileSidebarVisible;
- if (this.state.profileSidebarVisible) {
- this.overlayOpen.next(null);
- }
- }
-
- showConfigSidebar() {
- this.state.configSidebarVisible = true;
- }
-
isOverlay() {
return this.config().menuMode === 'overlay';
}
@@ -109,10 +98,6 @@ export class LayoutService {
return window.innerWidth > 991;
}
- isMobile() {
- return !this.isDesktop();
- }
-
onConfigUpdate() {
this._config = { ...this.config() };
this.configUpdate.next(this.config());
diff --git a/booklore-ui/src/assets/layout/styles/layout/_topbar.scss b/booklore-ui/src/assets/layout/styles/layout/_topbar.scss
index 965b64a07..421d0c79e 100644
--- a/booklore-ui/src/assets/layout/styles/layout/_topbar.scss
+++ b/booklore-ui/src/assets/layout/styles/layout/_topbar.scss
@@ -316,8 +316,18 @@
}
}
-.xxx {
+.topbar-right-items {
display: flex;
width: 100%;
justify-content: space-between;
}
+
+.rotate-left {
+ transform: rotate(0deg);
+ transition: transform 0.3s ease-in-out;
+}
+
+.rotate-right {
+ transform: rotate(180deg);
+ transition: transform 0.3s ease-in-out;
+}