Fix alignment of removal button

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent bb2f564b58
commit 161b1c5992

@ -12,7 +12,7 @@
<button *ngIf="!this.isSelectedRepository() && !repository.local" mat-flat-button color="primary" (click)="selectRepository()" [disabled]="!this.daemonRunning">Connect</button> <button *ngIf="!this.isSelectedRepository() && !repository.local" mat-flat-button color="primary" (click)="selectRepository()" [disabled]="!this.daemonRunning">Connect</button>
<button *ngIf="this.isSelectedRepository() && repository.local" mat-flat-button color="primary" (click)="this.repoService.closeSelectedRepository()">Close</button> <button *ngIf="this.isSelectedRepository() && repository.local" mat-flat-button color="primary" (click)="this.repoService.closeSelectedRepository()">Close</button>
<button *ngIf="this.isSelectedRepository() && !repository.local" mat-flat-button color="primary" (click)="this.repoService.disconnectSelectedRepository()" [disabled]="!this.daemonRunning">Disconnect</button> <button *ngIf="this.isSelectedRepository() && !repository.local" mat-flat-button color="primary" (click)="this.repoService.disconnectSelectedRepository()" [disabled]="!this.daemonRunning">Disconnect</button>
<button mat-button [mat-menu-trigger-for]="menu"><mat-icon>more_vert</mat-icon></button> <button mat-button [mat-menu-trigger-for]="menu" class="menu-button"><mat-icon>more_vert</mat-icon></button>
<mat-menu #menu="matMenu"> <mat-menu #menu="matMenu">
<button *ngIf="repository.local" mat-menu-item (click)="removeRepository()">Delete</button> <button *ngIf="repository.local" mat-menu-item (click)="removeRepository()">Delete</button>
<button *ngIf="!repository.local" mat-menu-item (click)="removeRepository()">Remove</button> <button *ngIf="!repository.local" mat-menu-item (click)="removeRepository()">Remove</button>

@ -32,3 +32,7 @@
.status-online { .status-online {
background-color: #1b651b; background-color: #1b651b;
} }
button.menu-button {
float: right;
}

Loading…
Cancel
Save