Skip to content

Commit

Permalink
style(identities): Improve indication of Account Identity.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtandersen committed Apr 3, 2024
1 parent 3de0f4a commit 9569d6c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/app/profiles/profiles.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2>Default Identity</h2>
[selectedProfile] = profileService.composeProfile
>
<div section-description>
<p style="margin-bottom: 0;">Select the email you want to use as your Default Identity:</p>
<p style="margin-bottom: 0;">Select the identity you want to use as your Default Identity:</p>
</div>
</app-profiles-default>
<br>
Expand Down
6 changes: 3 additions & 3 deletions src/app/profiles/profiles.editor.modal.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<mat-card class="mat_card mat-elevation-z0 update create modal-card">
<mat-card-header class="header">
<mat-card-title class="header-title">
<span *ngIf="is_create">Create profile</span>
<span *ngIf="is_update">Edit profile: {{identity.name}}</span>
<span *ngIf="is_create">Create identity</span>
<span *ngIf="is_update">Edit identity: {{identity.name}}</span>
</mat-card-title>
<mat-card-subtitle class="header-subtitle">
<div *ngIf="identity.type === 'main'">
Username Identity
Account Identity
</div>
<div *ngIf="identity.type === 'aliases'">
Alias
Expand Down
13 changes: 4 additions & 9 deletions src/app/profiles/profiles.lister.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@
<mat-card class="mat-elevation-z2 profile-card" *ngFor="let item of profiles; let i = index;">
<mat-card-content class="profile-content">
<mat-grid-list cols="{{mobile?6:7}}" rowHeight="15px">
<mat-grid-tile *ngIf="item.type === 'main'" colspan="6" rowspan="2">
<h3>Username Identity</h3>
</mat-grid-tile>
<mat-grid-tile colspan="2" rowspan="2">
<span class="float-right">Email:</span>
<span class="float-right heading">Email Address:</span>
</mat-grid-tile>
<mat-grid-tile colspan="4" rowspan="2">
<span class="float-left">{{item.email}}</span>
</mat-grid-tile>
<mat-grid-tile colspan="1" rowspan="8" *ngIf="!mobile">
<button mat-raised-button (click)="edit(item)" color="primary">Edit</button>
<span *ngIf="item.type !== 'main'" class="float-left heading">{{item.email}}</span><br />
<span *ngIf="item.type === 'main'" class="float-left heading">{{item.email}}<br /> (Account Identity) </span>
</mat-grid-tile>
<mat-grid-tile colspan="2" rowspan="2">
<span class="float-right">From Name:</span>
Expand Down Expand Up @@ -48,7 +43,7 @@ <h3>Username Identity</h3>
<mat-grid-tile colspan="{{mobile?6:7}}" rowspan="1" *ngIf="mobile">
<mat-divider></mat-divider>
</mat-grid-tile>
<mat-grid-tile colspan="{{mobile?6:7}}" rowspan="3" *ngIf="mobile">
<mat-grid-tile colspan="{{mobile?6:7}}" rowspan="3">
<button mat-raised-button (click)="edit(item)" color="primary">Edit</button>
</mat-grid-tile>
</mat-grid-list>
Expand Down
7 changes: 7 additions & 0 deletions src/app/profiles/profiles.lister.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
background-image: url(/_img/avatar.svg);
background-size: cover;
}
.mat-card {
padding: 20px;
}
.mat_header {
align-items: center;
}
Expand Down Expand Up @@ -47,3 +50,7 @@
height: 50px;
}
}

.heading {
font-weight: bold;
}

0 comments on commit 9569d6c

Please sign in to comment.