mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Improve responsiveness
This commit is contained in:
@@ -58,10 +58,10 @@
|
||||
|
||||
<div class="d-flex">
|
||||
<div class="mr-10 d-flex align-center">
|
||||
<button (click)="openSearch()" *ngIf="!showSearch" class="btn-no-color" (click)="showSearch=true">
|
||||
<button (click)="openSearch();showSearch=true" *ngIf="!showSearch" class="btn-no-color">
|
||||
<ion-icon class="font-45" src='assets/images/icons-search.svg'></ion-icon>
|
||||
</button>
|
||||
<button class="btn-no-color" (click)="closeSearch()" *ngIf="showSearch" (click)="showSearch=false">
|
||||
<button class="btn-no-color" (click)="closeSearch();showSearch=false" *ngIf="showSearch" >
|
||||
<ion-icon class="font-40" name="restaurant-outline" src="assets/images/icons-search-close.svg"></ion-icon>
|
||||
</button>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ export class HeaderPage implements OnInit {
|
||||
|
||||
profile: string = 'mdgpr';
|
||||
searchSubject: string = '';
|
||||
showSearch:false;
|
||||
showSearch=false;
|
||||
|
||||
constructor(
|
||||
private router: Router,private modalController: ModalController,
|
||||
@@ -41,9 +41,16 @@ export class HeaderPage implements OnInit {
|
||||
|
||||
async openSearch() {
|
||||
|
||||
let classs;
|
||||
if(window.innerWidth < 1366) {
|
||||
classs = 'modal modal-width-100 modal-padding-top'
|
||||
} else {
|
||||
classs = 'modal modal-width-100 modal-padding-top modal-desktop-shadow modal-desktop-remove-background'
|
||||
}
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: SearchPage,
|
||||
cssClass: 'group-messages modal-desktop search-modal search-modal-to-desktop',
|
||||
cssClass: classs,
|
||||
componentProps: {
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user