Skip to content

Commit 67e0235

Browse files
committed
feat(FavoritePanel): add search info (search input + tags)
1 parent 9f4e9d5 commit 67e0235

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

components/Panel/Item/FavoritePanel.vue

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@
55
</div>
66

77
<div v-show="!isConfigurationsEmpty" class="panel-wrapper">
8-
<div class="historical" @click="fetch(configuration)" v-for="configuration in configurations"
8+
<div class="favorite" @click="fetch(configuration)" v-for="configuration in configurations"
99
:key="configuration.id">
1010
<h4>{{configuration.name}}</h4>
11+
12+
<div class="content">
13+
<div v-if="configuration.title" class="title">
14+
{{configuration.title}}
15+
</div>
16+
<div>
17+
<template v-for="(tag, i) in configuration.tags">
18+
<span v-if="i === 0" :key="tag.tag_id">{{tag.tag_text}}</span>
19+
<span v-else :key="tag.tag_id"><span class="separator"> |</span> {{tag.tag_text}}</span>
20+
</template>
21+
</div>
22+
</div>
1123
<div class="cta-wrapper">
1224
<span @click.stop="editFavorite(configuration.id)">
1325
<Icon type="edit" theme="theme--grey"/>
@@ -199,14 +211,18 @@
199211
}
200212
}
201213
202-
.historical {
214+
.favorite {
203215
cursor: pointer;
204216
border-bottom: 1px solid rgba($GREY, .1);
205217
218+
.content {
219+
padding: 0 20px;
220+
}
221+
206222
207223
.title {
208224
margin-bottom: 20px;
209-
color: $TERNARY_COLOR;
225+
color: $PRIMARY_COLOR_LIGHT;
210226
font-family: $CircularStd;
211227
}
212228

0 commit comments

Comments
 (0)