Skip to content

Commit

Permalink
Changed the location and shape of the login button [#622]
Browse files Browse the repository at this point in the history
Moved it to the left to be more intuitive, and made it a full
button with a label.
  • Loading branch information
mcpierce authored and BRUCELLA2 committed Mar 7, 2021
1 parent 5a9bd95 commit 3f8eee2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
<mat-toolbar class="cx-width-100">
<button mat-icon-button [matMenuTriggerFor]="menu">
<mat-icon>more_vert</mat-icon>
</button>
<mat-label class="cx-spacer">ComiXed</mat-label>
<button
*ngIf="!user"
mat-icon-button
class="cx-action-button"
mat-flat-button
color="primary"
[matTooltip]="'user.login-user.login-tooltip' | translate"
(click)="onLogin()"
>
<mat-icon>login</mat-icon>
<mat-label>{{ "button.login" | translate }}</mat-label>
</button>
<button mat-icon-button [matMenuTriggerFor]="menu">
<mat-icon>more_vert</mat-icon>
</button>
<mat-label class="cx-spacer">ComiXed</mat-label>
<mat-label *ngIf="!!user">
{{ "app.logged-in" | translate: { email: user.email } }}
<button
Expand Down
2 changes: 1 addition & 1 deletion comixed-web/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,6 @@ $cx-column-large: 325px;
// buttons

.cx-action-button {
min-width: 200px !important;
min-width: 100px !important;
padding-bottom: 5px !important;
}

0 comments on commit 3f8eee2

Please sign in to comment.