feat: New select mode color

This commit is contained in:
m4ximuel 2021-04-22 21:12:56 +09:00 committed by GitHub
parent ed08c914eb
commit 8f8d3dbb76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 12 deletions

View file

@ -3,7 +3,6 @@
row
wrap
class="ma-0 px-4 py-2 ml-0 "
:class="style"
>
<v-flex xs12>
<div class="caption grey--text">
@ -41,9 +40,6 @@ export default {
}
return this.getWebuiSettings().busyTorrentProperties.filter(i => i.active)
},
style() {
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'selected' : ''}`
}
}
}

View file

@ -3,7 +3,6 @@
row
wrap
class="ma-0 pa-1"
:class="style"
>
<v-flex xs12 class="ma-1" row>
<span class="subtitle-1" style="line-height: 1.3em; font-size: .95em !important;">
@ -87,11 +86,6 @@ export default {
},
data: () => ({
mdiChevronUp, mdiChevronDown
}),
computed: {
style() {
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'selected' : ''}`
}
}
})
}
</script>

View file

@ -1,7 +1,7 @@
<template>
<v-card
class="pointer noselect elevation-0 rounded-0 ma-0 pa-0"
:class="isSelected ? 'info' : ''"
:class="style"
>
<v-layout
@click="evtClicnk"
@ -33,6 +33,9 @@ export default {
...mapState(['selected_torrents', 'selectMode']),
isSelected() {
return this.selected_torrents.includes(this.torrent.hash)
},
style() {
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'v-chip' : ''}`
}
},
methods: {