feat: refs #8863 add style to price tag
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Pau Rovira 2025-04-28 09:21:03 +02:00
parent 6273aea7ff
commit 98548b0df6
1 changed files with 31 additions and 20 deletions

View File

@ -60,8 +60,9 @@ const card = toRef(props, 'item');
<div class="footer">
<div class="price">
<p v-if="isCatalog">
{{ card.available }} {{ t('to') }}
{{ toCurrency(card.price) }}
<span class="available">{{ card.available }}</span>
{{ t('to') }}
<span class="price-value">{{ toCurrency(card.price) }}</span>
</p>
<slot name="price" />
<QIcon v-if="isCatalog" name="add_circle" class="icon">
@ -132,7 +133,6 @@ const card = toRef(props, 'item');
display: flex;
flex-direction: column;
gap: 4px;
white-space: nowrap;
width: 192px;
p {
margin-bottom: 0;
@ -145,6 +145,9 @@ const card = toRef(props, 'item');
}
.footer {
margin-top: auto;
width: 100%;
.price {
overflow: hidden;
white-space: nowrap;
@ -157,6 +160,14 @@ const card = toRef(props, 'item');
font-size: 12px;
}
.available {
color: $primary;
}
.price-value {
font-weight: bold;
}
.icon {
color: $primary;
font-size: 24px;