Skip to content

Commit

Permalink
fix(admin-ui): Fix layout of custom timeline entries
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jun 12, 2024
1 parent ac29e25 commit 3e075aa
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[class.has-custom-icon]="!!iconShape"
class="entry"
[class.last]="isLast === true"
[class.first]="isFirst === true"
[class.collapsed]="collapsed"
>
<div class="timeline" (click)="expandClick.emit()" [title]="timelineTitle | translate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

:host {
display: block;
}

&:first-of-type {
.timeline {
&:before {
border-left-color: var(--color-weight-200);
}
.first {
.timeline {
&:before {
border-left-color: var(--color-weight-200);
}
}

.entry-body {
max-height: initial;
@media screen and (min-width: $breakpoint-small) {
flex-direction: column;
}
}
.featured-entry {
width: 100%;
.entry-body {
max-height: initial;
@media screen and (min-width: $breakpoint-small) {
flex-direction: column;
}
}
.featured-entry {
width: 100%;
}
}

.entry {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class TimelineEntryComponent {
@Input() name: string;
@Input() featured: boolean;
@Input() iconShape?: string | [string, string];
@Input() isFirst?: boolean;
@Input() isLast?: boolean;
@HostBinding('class.collapsed')
@Input()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div class="entry-list">
<vdr-timeline-entry iconShape="note" displayType="muted" [featured]="true" *vdrIfPermissions="'UpdateCustomer'">
<vdr-timeline-entry iconShape="note" displayType="muted" [featured]="true" *vdrIfPermissions="'UpdateCustomer'"
[isFirst]="true">
<div class="note-entry">
<textarea [(ngModel)]="note" name="note" class="note"></textarea>
<button class="btn btn-secondary" [disabled]="!note" (click)="addNoteToCustomer()">
Expand Down Expand Up @@ -105,11 +106,13 @@
{{ 'customer.history-customer-email-update-requested' | translate }}
<vdr-history-entry-detail>
<vdr-labeled-data [label]="'customer.old-email-address' | translate">{{
entry.data.oldEmailAddress
}}</vdr-labeled-data>
entry.data.oldEmailAddress
}}
</vdr-labeled-data>
<vdr-labeled-data [label]="'customer.new-email-address' | translate">{{
entry.data.newEmailAddress
}}</vdr-labeled-data>
entry.data.newEmailAddress
}}
</vdr-labeled-data>
</vdr-history-entry-detail>
</div>
</ng-container>
Expand All @@ -118,11 +121,13 @@
{{ 'customer.history-customer-email-update-verified' | translate }}
<vdr-history-entry-detail>
<vdr-labeled-data [label]="'customer.old-email-address' | translate">{{
entry.data.oldEmailAddress
}}</vdr-labeled-data>
entry.data.oldEmailAddress
}}
</vdr-labeled-data>
<vdr-labeled-data [label]="'customer.new-email-address' | translate">{{
entry.data.newEmailAddress
}}</vdr-labeled-data>
entry.data.newEmailAddress
}}
</vdr-labeled-data>
</vdr-history-entry-detail>
</div>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="entry-list" [class.expanded]="expanded">
<vdr-timeline-entry iconShape="note" displayType="muted" [featured]="true">
<vdr-timeline-entry iconShape="note" displayType="muted" [featured]="true" [isFirst]="true">
<div class="note-entry">
<textarea [(ngModel)]="note" name="note" class="note"></textarea>
<button class="btn btn-secondary" [disabled]="!note" (click)="addNoteToOrder()">
Expand Down

0 comments on commit 3e075aa

Please sign in to comment.