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 row
wrap wrap
class="ma-0 px-4 py-2 ml-0 " class="ma-0 px-4 py-2 ml-0 "
:class="style"
> >
<v-flex xs12> <v-flex xs12>
<div class="caption grey--text"> <div class="caption grey--text">
@ -41,9 +40,6 @@ export default {
} }
return this.getWebuiSettings().busyTorrentProperties.filter(i => i.active) 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 row
wrap wrap
class="ma-0 pa-1" class="ma-0 pa-1"
:class="style"
> >
<v-flex xs12 class="ma-1" row> <v-flex xs12 class="ma-1" row>
<span class="subtitle-1" style="line-height: 1.3em; font-size: .95em !important;"> <span class="subtitle-1" style="line-height: 1.3em; font-size: .95em !important;">
@ -87,11 +86,6 @@ export default {
}, },
data: () => ({ data: () => ({
mdiChevronUp, mdiChevronDown mdiChevronUp, mdiChevronDown
}), })
computed: {
style() {
return `sideborder ${this.torrent.state.toLowerCase()} ${this.isSelected ? 'selected' : ''}`
}
}
} }
</script> </script>

View file

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