feat: Remove ionicons v2 dependency on widget (#3402)
This commit is contained in:
parent
c2b4991fd8
commit
a3ba8f9e35
15 changed files with 119 additions and 117 deletions
|
@ -2,10 +2,13 @@
|
|||
<div v-if="!!items.length" class="chat-bubble agent">
|
||||
<div v-for="item in items" :key="item.link" class="article-item">
|
||||
<a :href="item.link" target="_blank" rel="noopener noreferrer nofollow">
|
||||
<span class="title">
|
||||
<i class="ion-link icon"></i>{{ item.title }}
|
||||
<span class="title flex items-center text-black-900 font-medium">
|
||||
<fluent-icon icon="link" class="mr-1" />
|
||||
<span>{{ item.title }}</span>
|
||||
</span>
|
||||
<span class="description">
|
||||
{{ truncateMessage(item.description) }}
|
||||
</span>
|
||||
<span class="description">{{ truncateMessage(item.description) }}</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -13,8 +16,12 @@
|
|||
|
||||
<script>
|
||||
import messageFormatterMixin from 'shared/mixins/messageFormatterMixin';
|
||||
import FluentIcon from 'shared/components/FluentIcon/Index.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
FluentIcon,
|
||||
},
|
||||
mixins: [messageFormatterMixin],
|
||||
props: {
|
||||
items: {
|
||||
|
@ -38,18 +45,6 @@ export default {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.title {
|
||||
color: $color-woot;
|
||||
display: block;
|
||||
font-weight: $font-weight-medium;
|
||||
|
||||
.icon {
|
||||
color: $color-body;
|
||||
font-size: $font-size-medium;
|
||||
padding-right: $space-small;
|
||||
}
|
||||
}
|
||||
|
||||
.description {
|
||||
display: block;
|
||||
margin-top: $space-smaller;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue