Skip to content
Snippets Groups Projects
Commit 34e21f00 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix button position in search bar

parent 876785da
No related merge requests found
...@@ -8,21 +8,25 @@ ...@@ -8,21 +8,25 @@
(click)="hideCommentsList=false; searchBox.value=''"> (click)="hideCommentsList=false; searchBox.value=''">
<mat-icon>close</mat-icon> <mat-icon>close</mat-icon>
</button> </button>
<span class="fill-remaining-space"></span> <span class="fill-remaining-space"></span>
<button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value && userRole === 1 && comments.length > 0"
[matTooltip]="'Export comments'" (click)="openExportDialog()">
<mat-icon class="searchBarIcon" color="accent">cloud_download</mat-icon>
</button>
<button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value" <div class="button-bar" fxLayoutAlign="center center">
color="accent" (click)="openCreateDialog()"> <button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value && userRole === 1 && comments.length > 0"
<mat-icon class="searchBarIcon">add_circle</mat-icon> [matTooltip]="'Export comments'" (click)="openExportDialog()">
</button> <mat-icon class="searchBarIcon" color="accent">cloud_download</mat-icon>
</button>
<button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value && comments.length > 0" <button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value"
color="accent" [matMenuTriggerFor]="filterMenu"> color="accent" (click)="openCreateDialog()">
<mat-icon class="searchBarIcon">sort</mat-icon> <mat-icon class="searchBarIcon">add_circle</mat-icon>
</button> </button>
<button mat-icon-button class="searchBarButton" *ngIf="!searchBox.value && comments.length > 0"
color="accent" [matMenuTriggerFor]="filterMenu">
<mat-icon class="searchBarIcon">sort</mat-icon>
</button>
</div>
<mat-menu #filterMenu="matMenu" xPosition="before"> <mat-menu #filterMenu="matMenu" xPosition="before">
<div id="filterIcon"> <div id="filterIcon">
...@@ -56,9 +60,10 @@ ...@@ -56,9 +60,10 @@
</mat-menu> </mat-menu>
</div> </div>
<mat-card class="outer-card" *ngIf="comments.length > 0"> <mat-card class="outer-card" *ngIf="showComments().length > 0">
<app-comment *ngFor="let current of showComments()" [comment]="current"></app-comment> <app-comment *ngFor="let current of showComments()" [comment]="current"></app-comment>
</mat-card> </mat-card>
<div fxLayout="row" fxLayoutAlign="center center" class="no-comments">
<h4 *ngIf="comments.length < 1">{{ 'comment-page.no-comments' | translate }}</h4> <div *ngIf="comments.length < 1" fxLayout="row" fxLayoutAlign="center center" class="no-comments">
<h4>{{ 'comment-page.no-comments' | translate }}</h4>
</div> </div>
...@@ -40,7 +40,7 @@ input { ...@@ -40,7 +40,7 @@ input {
height: 45px !important; height: 45px !important;
text-align: center; text-align: center;
min-width: 50px; min-width: 50px;
margin: 10px 2% 0 0; margin: 0 2% 0 0;
} }
.close { .close {
...@@ -61,3 +61,7 @@ input { ...@@ -61,3 +61,7 @@ input {
h4 { h4 {
color: var(--text-1); color: var(--text-1);
} }
.button-bar {
margin-right: 2%;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment