minor changes / disabled sidebar toggle on hover

This commit is contained in:
X4Lo committed 2024-04-28 22:05:52 +01:00
1 parent 33870be352
commit 317ad928ea
4 files changed
+12 -14

No files matched your search

@@ -16,11 +16,11 @@ export class SidebarComponent implements AfterViewInit {
) {}
onMouseEnter() {
this.toggleService.hoverSidebar(true);
// this.toggleService.hoverSidebar(true);
}
onMouseLeave() {
this.toggleService.hoverSidebar(false);
// this.toggleService.hoverSidebar(false);
}
ngAfterViewInit() {
@@ -19,14 +19,14 @@ export class ToggleService {
}
}
hoverSidebar(isHovering: boolean) {
if (isHovering) {
document.body.classList.add('sidebar-hovered');
isHovering = true;
} else {
document.body.classList.remove('sidebar-hovered');
isHovering = false;
}
}
// hoverSidebar(isHovering: boolean) {
// if (isHovering) {
// document.body.classList.add('sidebar-hovered');
// isHovering = true;
// } else {
// document.body.classList.remove('sidebar-hovered');
// isHovering = false;
// }
// }
}
@@ -8,7 +8,7 @@
<a href="javascript:;">
</a>
</li>
<li class="breadcrumb-item active" aria-current="page">Trending</li>
<li class="breadcrumb-item active" aria-current="page">Popular</li>
</ol>
</nav>
</div>
@@ -23,10 +23,8 @@ export class EntryListComponent implements OnInit {
fetchMovies() {
if (this.type == 'popular') {
if (this.pages[this.currentPage]) {
console.log('page existe deja');
this.entries = this.pages[this.currentPage];
} else {
console.log("page n'existe pas");
this.tmdbService
.getPopular(this.currentPage, this.isMovies)
.subscribe((myEntries) => {