From 9df303260c5476b0ed4eb586ccd16fe4bb02d70a Mon Sep 17 00:00:00 2001 From: Klaus Quibeldey-Cirkel <klaus.quibeldey-cirkel@mni.thm.de> Date: Sun, 27 Sep 2020 13:10:39 +0200 Subject: [PATCH] Set the display threshold of the search bar to 2 questions --- .../moderator-comment-list.component.html | 2 +- .../components/shared/comment-list/comment-list.component.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html b/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html index 2ffd470f2..ef718fe25 100644 --- a/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html +++ b/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html @@ -1,6 +1,6 @@ <div fxLayout="row" [ngClass]="{'search-container' : !scroll, 'search-container-fixed' : scroll}" - *ngIf="comments.length > 2" + *ngIf="comments.length > 1" (window:scroll)="checkScroll()" fxLayoutAlign="center"> <mat-label *ngIf="deviceType === 'desktop'" diff --git a/src/app/components/shared/comment-list/comment-list.component.html b/src/app/components/shared/comment-list/comment-list.component.html index 8e197bbbb..113b01146 100644 --- a/src/app/components/shared/comment-list/comment-list.component.html +++ b/src/app/components/shared/comment-list/comment-list.component.html @@ -1,6 +1,6 @@ <div fxLayout="row" [ngClass]="{'search-container' : !scroll, 'search-container-fixed' : scroll}" - *ngIf="comments.length > 2" + *ngIf="comments.length > 1" (window:scroll)="checkScroll()" fxLayoutAlign="center"> <button id="filter-close-button" -- GitLab