1
0
Fork 0
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 ()

This commit is contained in:
Rémi Marseault 2024-11-09 18:03:49 +01:00 committed by GitHub
parent 0b0be6fe05
commit 71a7c1f9e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 3 deletions
src
components/RSS/Feeds
locales
pages

View file

@ -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>

View file

@ -614,6 +614,7 @@
"unread": "Show unread articles only"
},
"item": {
"new": "NEW",
"author": "Author: {author}",
"category": "Category: {category}",
"feedName": "Feed name: {name}"

View file

@ -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-'] {