fixed search popup not showing in navbar
This commit is contained in:
1 parent
9867b73cdc
commit
5904cc302b
2 files changed
+18
-11
No files matched your search
@@ -6,12 +6,13 @@
|
||||
</div>
|
||||
<div class="search-bar flex-grow-1">
|
||||
<div class="position-relative">
|
||||
<input class="form-control rounded-5 px-5 search-control d-lg-block d-none" type="text" placeholder="Search">
|
||||
<input class="form-control rounded-5 px-5 search-control d-lg-block d-none" type="text" placeholder="Search"
|
||||
(click)="toggleSearchPopup()">
|
||||
<span
|
||||
class="material-icons-outlined position-absolute d-lg-block d-none ms-3 translate-middle-y start-0 top-50">search</span>
|
||||
<span
|
||||
class="material-icons-outlined position-absolute me-3 translate-middle-y end-0 top-50 search-close">close</span>
|
||||
<div class="search-popup p-3">
|
||||
<span class="material-icons-outlined position-absolute me-3 translate-middle-y end-0 top-50 search-close"
|
||||
[ngClass]="{'d-block': showSearchPopup}" (click)="toggleSearchPopup()">close</span>
|
||||
<div class="search-popup p-3" [ngClass]="{'d-block': showSearchPopup}">
|
||||
<div class="card rounded-4 overflow-hidden">
|
||||
<div class="card-header d-lg-none">
|
||||
<div class="position-relative">
|
||||
@@ -76,7 +77,7 @@
|
||||
<div class="search-list d-flex flex-column gap-2">
|
||||
<div class="search-list-item d-flex align-items-center gap-3">
|
||||
<div class="memmber-img">
|
||||
<img src="assets/images/avatars/01.png" width="32" height="32" class="rounded-circle" alt="">
|
||||
<img src="https://picsum.photos/32/32" width="32" height="32" class="rounded-circle" alt="">
|
||||
</div>
|
||||
<div class="">
|
||||
<h5 class="mb-0 search-list-title ">Andrew Stark</h5>
|
||||
@@ -85,7 +86,7 @@
|
||||
|
||||
<div class="search-list-item d-flex align-items-center gap-3">
|
||||
<div class="memmber-img">
|
||||
<img src="assets/images/avatars/02.png" width="32" height="32" class="rounded-circle" alt="">
|
||||
<img src="https://picsum.photos/32/32" width="32" height="32" class="rounded-circle" alt="">
|
||||
</div>
|
||||
<div class="">
|
||||
<h5 class="mb-0 search-list-title ">Snetro Jhonia</h5>
|
||||
@@ -94,7 +95,7 @@
|
||||
|
||||
<div class="search-list-item d-flex align-items-center gap-3">
|
||||
<div class="memmber-img">
|
||||
<img src="assets/images/avatars/03.png" width="32" height="32" class="rounded-circle" alt="">
|
||||
<img src="https://picsum.photos/32/32" width="32" height="32" class="rounded-circle" alt="">
|
||||
</div>
|
||||
<div class="">
|
||||
<h5 class="mb-0 search-list-title">Michle Clark</h5>
|
||||
@@ -438,7 +439,7 @@
|
||||
<a class="dropdown-item border-bottom py-2" href="javascript:;">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<div class="">
|
||||
<img src="assets/images/avatars/01.png" class="rounded-circle" width="45" height="45" alt="">
|
||||
<img src="https://picsum.photos/32/32" class="rounded-circle" width="45" height="45" alt="">
|
||||
</div>
|
||||
<div class="">
|
||||
<h5 class="notify-title">Congratulations Jhon</h5>
|
||||
@@ -506,7 +507,7 @@
|
||||
<a class="dropdown-item border-bottom py-2" href="javascript:;">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<div class="">
|
||||
<img src="assets/images/avatars/06.png" class="rounded-circle" width="45" height="45" alt="">
|
||||
<img src="https://picsum.photos/32/32" class="rounded-circle" width="45" height="45" alt="">
|
||||
</div>
|
||||
<div class="">
|
||||
<h5 class="notify-title">Congratulations Jhon</h5>
|
||||
@@ -547,12 +548,12 @@
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a href="javascrpt:;" class="dropdown-toggle dropdown-toggle-nocaret" data-bs-toggle="dropdown">
|
||||
<img src="assets/images/avatars/01.png" class="rounded-circle p-1 border" width="45" height="45">
|
||||
<img src="https://picsum.photos/32/32" class="rounded-circle p-1 border" width="45" height="45">
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-user dropdown-menu-end shadow">
|
||||
<a class="dropdown-item gap-2 py-2" href="javascript:;">
|
||||
<div class="text-center">
|
||||
<img src="assets/images/avatars/01.png" class="rounded-circle p-1 shadow mb-3" width="90" height="90"
|
||||
<img src="https://picsum.photos/32/32" class="rounded-circle p-1 shadow mb-3" width="90" height="90"
|
||||
alt="">
|
||||
<h5 class="user-name mb-0 fw-bold">Hello, Jhon</h5>
|
||||
</div>
|
||||
|
||||
@@ -7,9 +7,15 @@ import { ToggleService } from '../../services/toggle.service';
|
||||
styleUrls: ['./navbar.component.css'],
|
||||
})
|
||||
export class NavbarComponent {
|
||||
showSearchPopup: boolean = false;
|
||||
|
||||
constructor(private toggleService: ToggleService) {}
|
||||
|
||||
toggleSidebar() {
|
||||
this.toggleService.toggleSidebar();
|
||||
}
|
||||
|
||||
toggleSearchPopup() {
|
||||
this.showSearchPopup = !this.showSearchPopup;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user