mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
perf(RSS): Add "new" chip for increased contrast (#2031)
This commit is contained in:
parent
0b0be6fe05
commit
71a7c1f9e9
3 changed files with 9 additions and 3 deletions
src
|
@ -20,9 +20,12 @@ const rssStore = useRssStore()
|
|||
<v-list-item :class="{ 'rss-read': value.isRead }" @click="$emit('click')" @contextmenu="$emit('markAsRead')">
|
||||
<div class="d-flex">
|
||||
<div>
|
||||
<v-list-item-title class="wrap-anywhere" style="white-space: unset">{{ value.title }}</v-list-item-title>
|
||||
<v-list-item-title class="d-flex align-center ga-3 wrap-anywhere" style="white-space: unset">
|
||||
<v-chip v-if="!value.isRead" color="accent" variant="outlined">{{ $t('rssArticles.feeds.item.new') }}</v-chip>
|
||||
<div>{{ value.title }}</div>
|
||||
</v-list-item-title>
|
||||
|
||||
<v-list-item-subtitle class="d-block">
|
||||
<v-list-item-subtitle class="d-block mt-3">
|
||||
<div>{{ value.parsedDate.toLocaleString() }}</div>
|
||||
<div>{{ $t('rssArticles.feeds.item.feedName', { name: rssStore.getFeedNames(value.id).join(' | ') }) }}</div>
|
||||
<div v-if="value.author">{{ $t('rssArticles.feeds.item.author', { author: value.author }) }}</div>
|
||||
|
|
|
@ -614,6 +614,7 @@
|
|||
"unread": "Show unread articles only"
|
||||
},
|
||||
"item": {
|
||||
"new": "NEW",
|
||||
"author": "Author: {author}",
|
||||
"category": "Category: {category}",
|
||||
"feedName": "Feed name: {name}"
|
||||
|
|
|
@ -103,6 +103,8 @@ onUnmounted(() => {
|
|||
</template>
|
||||
|
||||
<style lang="scss">
|
||||
@use "sass:color";
|
||||
|
||||
.fab {
|
||||
position: fixed;
|
||||
right: 24px;
|
||||
|
@ -112,7 +114,7 @@ onUnmounted(() => {
|
|||
#rss-articles {
|
||||
.rss-read {
|
||||
&[class*='v-theme--dark-'] {
|
||||
color: lighten(darkgrey, 5%) !important;
|
||||
color: color.adjust(darkgrey, $lightness: 5%) !important;
|
||||
}
|
||||
|
||||
&[class*='v-theme--light-'] {
|
||||
|
|
Loading…
Add table
Reference in a new issue