Skip to content

Commit

Permalink
align confidence label with stretch and score labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakmeth committed Nov 27, 2023
1 parent 9e6b7e2 commit 2cab30c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<div class="scoring-section">
<app-scoring class="scoring-detail" [keyResult]="keyResult" [isDetail]="true"></app-scoring>
<span class="text-small d-flex align-items-center flex-column mb-2 ms-3">
<span class="text-small d-flex align-items-center flex-column mb-2 ms-3 confidence-container">
Confidence
<app-confidence
[checkIn]="keyResult.lastCheckIn!"
Expand Down
17 changes: 7 additions & 10 deletions frontend/src/app/keyresult-detail/keyresult-detail.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@
width: 81.5%;
}

.confidence-container {
width: 18.5%;
}

.ordinal-scoring-boxes {
width: 31%;
}

.ordinal-col {
width: 30%;
}
Expand Down Expand Up @@ -67,9 +59,7 @@
justify-content: space-between;
row-gap: 10px;
}
}

@media screen and (max-width: 580px) {
.ordinal-div {
flex-direction: column;
align-items: center;
Expand All @@ -84,4 +74,11 @@
.keyResult-detail-attribute-show {
height: auto;
}

.confidence-container {
display: flex;
flex-direction: column;
justify-content: center;
margin-bottom: 0.125rem !important;
}
}
11 changes: 11 additions & 0 deletions frontend/src/app/shared/custom/scoring/scoring.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.scoring-container {
display: flex;
align-items: center;
}

.okr-score-label {
display: inline-grid;
width: 30%;
Expand Down Expand Up @@ -51,3 +56,9 @@
display: inline-block;
text-align: end;
}

@media screen and (max-width: 580px) {
.okr-stretch {
margin-bottom: 0.125rem !important;
}
}
8 changes: 7 additions & 1 deletion frontend/src/style/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ body pzsh-backdrop {
}

.text-small {
font-size: 0.9rem;
font-size: 1rem;
}

@media screen and (max-width: 580px) {
.text-small {
font-size: 0.8rem;
}
}

.dialog {
Expand Down

0 comments on commit 2cab30c

Please sign in to comment.