Skip to content

Commit

Permalink
[Enhancement] Align fields with header - /pages/employees/timesheets (#…
Browse files Browse the repository at this point in the history
…8268)

* [Enhancement] Align fields with header - /pages/employees/timesheets/daily

* truncate title
  • Loading branch information
samuelmbabhazi authored Sep 26, 2024
1 parent 6dd109a commit b7e3216
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</div>
</ng-template>
</ng-template>
<div class="col-3 project-name">
<div class="col-3">
<ngx-project *ngIf="log?.project; else noProject" [rowData]="log"></ngx-project>
<ng-template #noProject>
<span>
Expand All @@ -94,7 +94,7 @@
<div class="mt-2 small">
<span *ngIf="log?.task; else noToDo">
<strong> {{ 'TIMESHEET.TODO' | translate }} : </strong>
{{ log?.task?.title }}
{{ log?.task?.title | truncate : 50 }}
</span>
<ng-template #noToDo>
<span>{{ 'TIMESHEET.NO_TODO' | translate }}</span>
Expand All @@ -119,10 +119,18 @@
{{ log.logType | titlecase }}
</span>
</div>
<div class="col">
<span class="log">
{{ log.source | replace : '_' : ' ' | titlecase }}
</span>
<div class="col source-version">
<ngx-badge-label
[text]="log?.source | replace : '_' : ' ' | titlecase"
class="badge-item"
></ngx-badge-label>

<ngx-badge-label
*ngIf="log?.version"
[text]="log?.version"
status="info"
class="badge-item"
></ngx-badge-label>
</div>
<div class="col">
{{ log.duration | durationFormat }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
@import '../../weekly/weekly/weekly.component.scss';

:host {
nb-card {
border-radius: 0 nb-theme(border-radius) nb-theme(border-radius) nb-theme(border-radius);
}
nb-card-body {
height: 100%;
}
.gauzy-button-action {
display: flex;
align-content: center;
justify-content: flex-end;
}
.log-container {
height: calc(100% - 50px);
}
.log {
width: fit-content;
font-size: 12px;
font-weight: 600;
line-height: 15px;
letter-spacing: 0em;
text-align: left;
padding: 3px 8px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border-radius: nb-theme(border-radius);
background: var(--gauzy-sidebar-background-3);
}
nb-card {
border-radius: 0 nb-theme(border-radius) nb-theme(border-radius) nb-theme(border-radius);
}
nb-card-body {
height: 100%;
}
.gauzy-button-action {
display: flex;
align-content: center;
justify-content: flex-end;
}
.log-container {
height: calc(100% - 50px);
}
.log {
width: fit-content;
font-size: 12px;
font-weight: 600;
line-height: 15px;
letter-spacing: 0em;
text-align: left;
padding: 3px 8px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
border-radius: nb-theme(border-radius);
background: var(--gauzy-sidebar-background-3);
}
.source-version {
display: flex;
gap: 5%;
}
}

0 comments on commit b7e3216

Please sign in to comment.