Refactor: Improve rating filter UI and update locale text

Co-authored-by: jxxghp <jxxghp@qq.com>
This commit is contained in:
Cursor Agent
2025-09-16 02:36:16 +00:00
co-authored by jxxghp
parent fb6ee2910f
commit b004facfca
3 changed files with 51 additions and 55 deletions
+1 -1
View File
@@ -872,7 +872,7 @@ export default {
batchEnableError: 'Batch enable operation failed', batchEnableError: 'Batch enable operation failed',
batchPauseError: 'Batch pause operation failed', batchPauseError: 'Batch pause operation failed',
batchDeleteError: 'Batch delete operation failed', batchDeleteError: 'Batch delete operation failed',
minSubscribers: 'Min Subscribers', minSubscribers: 'Minimum Subscribers',
}, },
recommend: { recommend: {
all: 'All', all: 'All',
+13 -15
View File
@@ -217,23 +217,21 @@ async function fetchData({ done }: { done: any }) {
<div class="mr-5"> <div class="mr-5">
<VLabel>{{ t('tmdb.rating') }}</VLabel> <VLabel>{{ t('tmdb.rating') }}</VLabel>
</div> </div>
<div class="flex align-center" style="width: 300px;"> <VSlider
<VTextField
v-model="filterParams.min_rating" v-model="filterParams.min_rating"
variant="outlined" thumb-label
density="compact"
type="number"
hide-details
single-line
min="0"
max="10" max="10"
step="0.1" min="0"
style="width: 80px;" :step="0.1"
/> class="align-center"
<span class="mx-2">-</span> hide-details
style="width: 200px;"
>
<template v-slot:append>
<VTextField <VTextField
v-model="filterParams.max_rating"
variant="outlined" variant="outlined"
width="5rem"
v-model="filterParams.max_rating"
density="compact" density="compact"
type="number" type="number"
hide-details hide-details
@@ -241,9 +239,9 @@ async function fetchData({ done }: { done: any }) {
min="0" min="0"
max="10" max="10"
step="0.1" step="0.1"
style="width: 80px;"
/> />
</div> </template>
</VSlider>
</div> </div>
<div class="flex justify-start align-center"> <div class="flex justify-start align-center">
+13 -15
View File
@@ -236,23 +236,21 @@ function removeData(id: number) {
<div class="mr-5"> <div class="mr-5">
<VLabel>{{ t('tmdb.rating') }}</VLabel> <VLabel>{{ t('tmdb.rating') }}</VLabel>
</div> </div>
<div class="flex align-center" style="width: 300px;"> <VSlider
<VTextField
v-model="filterParams.min_rating" v-model="filterParams.min_rating"
variant="outlined" thumb-label
density="compact"
type="number"
hide-details
single-line
min="0"
max="10" max="10"
step="0.1" min="0"
style="width: 80px;" :step="0.1"
/> class="align-center"
<span class="mx-2">-</span> hide-details
style="width: 200px;"
>
<template v-slot:append>
<VTextField <VTextField
v-model="filterParams.max_rating"
variant="outlined" variant="outlined"
width="5rem"
v-model="filterParams.max_rating"
density="compact" density="compact"
type="number" type="number"
hide-details hide-details
@@ -260,9 +258,9 @@ function removeData(id: number) {
min="0" min="0"
max="10" max="10"
step="0.1" step="0.1"
style="width: 80px;"
/> />
</div> </template>
</VSlider>
</div> </div>
</div> </div>