[footer] fix footer sizing in /services

This commit is contained in:
nymkappa
2023-08-20 22:54:12 +02:00
parent 22886cb32d
commit e82b43e340
5 changed files with 23 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
<div [formGroup]="fiatForm" class="text-small text-center">
<select formControlName="fiat" class="custom-select custom-select-sm form-control-secondary form-control mx-auto" style="width: 95px;" (change)="changeFiat()">
<select formControlName="fiat" class="custom-select custom-select-sm form-control-secondary form-control mx-auto" style="width: 85px;" (change)="changeFiat()">
<option *ngFor="let currency of currencies" [value]="currency[1].code">{{ currency[1].code }}</option>
</select>
</div>

View File

@@ -1,4 +1,4 @@
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { Component, OnInit, Output, EventEmitter, HostListener } from '@angular/core';
import { Observable } from 'rxjs';
import { ApiService } from '../../services/api.service';
import { MenuGroup } from '../../interfaces/services.interface';
@@ -51,4 +51,11 @@ export class MenuComponent implements OnInit {
hambugerClick() {
this.navOpen = !this.navOpen;
}
@HostListener('window:resize', ['$event'])
onResize(event) {
if (this.isServices) {
this.navOpen = !this.isSmallScreen();
}
}
}