put grade recommendation reason inline with action badge
This commit is contained in:
parent
91b2a61ac9
commit
399480db9f
1 changed files with 6 additions and 5 deletions
|
|
@ -70,7 +70,7 @@
|
||||||
<div class="recommendation">
|
<div class="recommendation">
|
||||||
<span class="action-badge {action?.class ?? ''}">{action?.label ?? grade.recommendation.action}</span>
|
<span class="action-badge {action?.class ?? ''}">{action?.label ?? grade.recommendation.action}</span>
|
||||||
{#if grade.recommendation.reason}
|
{#if grade.recommendation.reason}
|
||||||
<p class="reason">{grade.recommendation.reason}</p>
|
<span class="reason">{grade.recommendation.reason}</span>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
@ -170,17 +170,19 @@
|
||||||
|
|
||||||
.recommendation {
|
.recommendation {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
gap: spacing.$unit-half;
|
align-items: center;
|
||||||
|
gap: spacing.$unit;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-badge {
|
.action-badge {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-self: flex-start;
|
|
||||||
padding: spacing.$unit-fourth spacing.$unit-half;
|
padding: spacing.$unit-fourth spacing.$unit-half;
|
||||||
border-radius: layout.$item-corner;
|
border-radius: layout.$item-corner;
|
||||||
font-size: typography.$font-small;
|
font-size: typography.$font-small;
|
||||||
font-weight: typography.$medium;
|
font-weight: typography.$medium;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
&.action-keep {
|
&.action-keep {
|
||||||
background: colors.$wind-bg-20;
|
background: colors.$wind-bg-20;
|
||||||
|
|
@ -199,7 +201,6 @@
|
||||||
.reason {
|
.reason {
|
||||||
font-size: typography.$font-small;
|
font-size: typography.$font-small;
|
||||||
color: colors.$grey-40;
|
color: colors.$grey-40;
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-grade {
|
.no-grade {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue