Change navbar-height to header-height in langing pages

This commit is contained in:
Konstantinos Triantafyllou 2022-06-16 01:44:03 +03:00
parent 25b98c9af0
commit d6fa3a87fa
5 changed files with 5 additions and 15 deletions

View File

@ -212,7 +212,7 @@ export class DataProviderComponent {
ngAfterViewInit() { ngAfterViewInit() {
if (typeof document !== 'undefined') { if (typeof document !== 'undefined') {
this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--navbar-height')); this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height'));
// let bottom = document.getElementById('bottom'); // let bottom = document.getElementById('bottom');
// if(bottom) { // if(bottom) {
// let observer = new IntersectionObserver(entries => { // let observer = new IntersectionObserver(entries => {

View File

@ -190,7 +190,7 @@ export class OrganizationComponent {
ngAfterViewInit() { ngAfterViewInit() {
if (typeof document !== 'undefined') { if (typeof document !== 'undefined') {
this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--navbar-height')); this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height'));
// let bottom = document.getElementById('bottom'); // let bottom = document.getElementById('bottom');
// if(bottom) { // if(bottom) {
// let observer = new IntersectionObserver(entries => { // let observer = new IntersectionObserver(entries => {

View File

@ -232,7 +232,7 @@ export class ProjectComponent {
ngAfterViewInit() { ngAfterViewInit() {
if (typeof document !== 'undefined') { if (typeof document !== 'undefined') {
this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--navbar-height')); this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height'));
// let bottom = document.getElementById('bottom'); // let bottom = document.getElementById('bottom');
// if(bottom) { // if(bottom) {
// let observer = new IntersectionObserver(entries => { // let observer = new IntersectionObserver(entries => {

View File

@ -225,7 +225,7 @@ export class ResultLandingComponent {
ngAfterViewInit() { ngAfterViewInit() {
if (typeof document !== 'undefined') { if (typeof document !== 'undefined') {
this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--navbar-height')); this.offset = Number.parseInt(getComputedStyle(document.documentElement).getPropertyValue('--header-height'));
// let bottom = document.getElementById('bottom'); // let bottom = document.getElementById('bottom');
// if(bottom) { // if(bottom) {
// let observer = new IntersectionObserver(entries => { // let observer = new IntersectionObserver(entries => {

View File

@ -14,7 +14,7 @@ declare var UIkit;
template: ` template: `
<form *ngIf="user && form" [formGroup]="form"> <form *ngIf="user && form" [formGroup]="form">
<ng-template [ngIf]="form.get('notify')"> <ng-template [ngIf]="form.get('notify')">
<label><input name="notify" type="checkbox" class="uk-checkbox" formControlName="notify"> {{label}}</label> <label><input name="notify" type="checkbox" class="uk-checkbox" formControlName="notify"><span class="uk-margin-xsmall-left">{{label}}</span></label>
<div [class.uk-hidden]="!form.get('notify').value" class="uk-position-relative uk-margin-medium-top"> <div [class.uk-hidden]="!form.get('notify').value" class="uk-position-relative uk-margin-medium-top">
<div class="notification-user"> <div class="notification-user">
<notification-user [name]="user.firstname" [surname]="user.lastname"></notification-user> <notification-user [name]="user.firstname" [surname]="user.lastname"></notification-user>
@ -23,16 +23,6 @@ declare var UIkit;
</div> </div>
</ng-template> </ng-template>
<ng-template [ngIf]="form.get('groups') && availableGroups"> <ng-template [ngIf]="form.get('groups') && availableGroups">
<!--<div class="uk-grid uk-grid-small" uk-grid>
<span style="opacity: 0.5;" class="uk-text-bold uk-margin-top">Send to: </span>
<div [class.uk-hidden]="focused" class="uk-width-expand uk-margin-small" (click)="focus($event)">
<span *ngIf="groups.length === 0" class="placeholder">Add a recipient</span>
<span *ngIf="groups.length > 0" [attr.uk-tooltip]="(groups.length > 2)?groups.join(', '):null">
{{groups.slice(0, 2).join(', ')}}
<span *ngIf="groups.length > 2" style="opacity: 0.5; margin-left: 4px">+ {{groups.length - 2}} more</span>
</span>
</div>
</div>-->
<div #recipients input type="chips" [options]="availableGroups" [showOptionsOnEmpty]="false" <div #recipients input type="chips" [options]="availableGroups" [showOptionsOnEmpty]="false"
placeholder="Sent to:" hint="Add a recipient" inputClass="recipients" [formInput]="form.get('groups')"> placeholder="Sent to:" hint="Add a recipient" inputClass="recipients" [formInput]="form.get('groups')">
</div> </div>