Skip to content

Commit

Permalink
Fixed the ui bug of banner coming over the search result container (#…
Browse files Browse the repository at this point in the history
…20871)

Signed-off-by: kunal-511 <yoyokvunal@gmail.com>
  • Loading branch information
kunal-511 authored Aug 28, 2024
1 parent 44284ac commit 146443e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="search-overlay" *ngIf="state">
<div [style.top.px]="getTopValue()" class="search-overlay" *ngIf="state">
<div id="placeholder1"></div>
<div class="search-header">
<a href="javascript:void(0)" (click)="close()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,11 @@ export class SearchResultComponent implements OnInit, OnDestroy {
}
);
}
getTopValue(): number {
const headerHeight: number =
document.querySelector('navigator')?.clientHeight || 0;
const bannerHeight: number =
document.querySelector('app-app-level-alerts')?.clientHeight || 0;
return headerHeight + bannerHeight;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
z-index: 999;
box-sizing: border-box;
background: #fafafa;
top: 60px;
left: 0;
padding-left: 36px;
padding-right: 36px;
Expand Down

0 comments on commit 146443e

Please sign in to comment.