mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-02-16 15:21:56 +03:00
fix: Remove unneeded classes to prevent unexpected color background in MobileCard (#782)
This commit is contained in:
parent
1fc82f8b42
commit
6745c91a3c
5 changed files with 10 additions and 10 deletions
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -6,7 +6,7 @@
|
|||
"packages": {
|
||||
"": {
|
||||
"name": "vuetorrent",
|
||||
"version": "1.5.4",
|
||||
"version": "1.5.5",
|
||||
"dependencies": {
|
||||
"ajv": "^8.12.0",
|
||||
"apexcharts": "^3.35.0",
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)}`
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue