fix: Remove unneeded classes to prevent unexpected color background in MobileCard (#782)

This commit is contained in:
Rémi Marseault 2023-04-27 16:18:36 +02:00 committed by GitHub
parent 1fc82f8b42
commit 6745c91a3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 10 deletions

2
package-lock.json generated
View file

@ -6,7 +6,7 @@
"packages": {
"": {
"name": "vuetorrent",
"version": "1.5.4",
"version": "1.5.5",
"dependencies": {
"ajv": "^8.12.0",
"apexcharts": "^3.35.0",

View file

@ -20,7 +20,7 @@
<script>
import { mdiInformationOutline } from '@mdi/js'
import StorageCard from '../Core/StorageCard.vue'
import StringCard from "../Core/StringCard.vue";
import StringCard from '../Core/StringCard.vue'
import { titleCase } from '@/filters'
export default {
@ -41,7 +41,7 @@ export default {
return this.isSession ? this.status.sessionUploaded : this.status.alltimeUploaded
},
getRatio() {
return this.isSession ? "" : this.status.alltimeRatio
return this.isSession ? '' : this.status.alltimeRatio
}
},
methods: {

View file

@ -21,7 +21,7 @@
</v-flex>
<v-flex xs12 class="pa-0 ma-1 row spangap">
<span v-if="isSizeActive">
<span class="downloaded">
<span>
<span class="body-2">{{ torrent.downloaded | getDataValue }} </span>
<span class="grey--text caption">{{ torrent.downloaded | getDataUnit }}</span>
</span>
@ -32,17 +32,17 @@
</span>
</span>
<span v-if="isSizeActive && isProgressActive" class="grey--text" style="margin-top: 3px"></span>
<span v-if="isProgressActive" class="progress">
<span v-if="isProgressActive">
<span class="body-2">{{ torrent.progress }} </span>
<span class="grey--text caption">%</span>
</span>
<span v-if="(isSizeActive || isProgressActive) && isRatioActive" class="grey--text" style="margin-top: 3px"></span>
<span v-if="isRatioActive" class="ratio">
<span v-if="isRatioActive">
<span class="grey--text caption">R: </span>
<span class="body-2">{{ torrent.ratio }}</span>
</span>
<span v-if="(isSizeActive || isProgressActive || isRatioActive) && isUploadedActive" class="grey--text" style="margin-top: 3px"></span>
<span v-if="isUploadedActive" class="uploaded">
<span v-if="isUploadedActive">
<span class="body-2">{{ torrent.uploaded | getDataValue }} </span>
<span class="grey--text caption">{{ torrent.uploaded | getDataUnit }}</span>
</span>

View file

@ -6,7 +6,7 @@ import type { Optional } from '@/global'
export default class Status {
alltimeDownloaded: number = 0
alltimeUploaded: number = 0
alltimeRatio: string = ""
alltimeRatio: string = ''
altSpeed: boolean = false
dlspeed: number = 0
dlspeedRaw: number = 0

View file

@ -21,9 +21,9 @@ export default {
getAuthenticated: (state: StoreState) => () => state.authenticated,
getTorrentCountString: (state: StoreState) => () => {
if (state.selected_torrents && state.selected_torrents.length) {
if (i18n.locale === 'zh-hans'||i18n.locale === 'zh-hant') {
if (i18n.locale === 'zh-hans' || i18n.locale === 'zh-hant') {
return `${i18n.tc('navbar.torrentsCount', state.filteredTorrentsCount)}${i18n.t('of')} ${state.selected_torrents.length}`
}else{
} else {
return `${state.selected_torrents.length} ${i18n.t('of')} ${i18n.tc('navbar.torrentsCount', state.filteredTorrentsCount)}`
}
}