refactor(buys): entry buys now show item.subName

This commit is contained in:
Carlos Jimenez Ruiz 2021-09-22 15:15:52 +02:00
parent 23ba5657c5
commit 95ff46db09
3 changed files with 26 additions and 1 deletions

View File

@ -56,6 +56,7 @@ module.exports = Self => {
'id',
'typeFk',
'name',
'subName',
'size',
'minPrice',
'tag5',

View File

@ -172,7 +172,12 @@
</span>
</td>
<td vn-fetched-tags colspan="8">
<vn-one title="{{::buy.item.name}}">{{::buy.item.name}}</vn-one>
<div>
<vn-one title="{{::buy.item.concept}}">{{::buy.item.name}}</vn-one>
<vn-one ng-if="::buy.item.subName">
<h3 title="{{::buy.item.subName}}">{{::buy.item.subName}}</h3>
</vn-one>
</div>
<vn-fetched-tags
max-length="6"
item="::buy.item"

View File

@ -38,6 +38,25 @@ vn-entry-buy-index vn-card {
tr {
margin-bottom: 10px;
}
td[vn-fetched-tags] {
& div {
display: flex;
flex-wrap: wrap;
& vn-one {
min-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
}
& vn-one h3 {
color: $color-font-secondary;
text-transform: uppercase;
line-height: initial;
font-size: 0.75rem
}
}
}
}
$color-font-link-medium: lighten($color-font-link, 20%)