mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-28 03:39:46 +08:00
Refactor: Improve rating filter UI and update locale text
Co-authored-by: jxxghp <jxxghp@qq.com>
This commit is contained in:
@@ -217,33 +217,31 @@ async function fetchData({ done }: { done: any }) {
|
||||
<div class="mr-5">
|
||||
<VLabel>{{ t('tmdb.rating') }}</VLabel>
|
||||
</div>
|
||||
<div class="flex align-center" style="width: 300px;">
|
||||
<VTextField
|
||||
v-model="filterParams.min_rating"
|
||||
variant="outlined"
|
||||
density="compact"
|
||||
type="number"
|
||||
hide-details
|
||||
single-line
|
||||
min="0"
|
||||
max="10"
|
||||
step="0.1"
|
||||
style="width: 80px;"
|
||||
/>
|
||||
<span class="mx-2">-</span>
|
||||
<VTextField
|
||||
v-model="filterParams.max_rating"
|
||||
variant="outlined"
|
||||
density="compact"
|
||||
type="number"
|
||||
hide-details
|
||||
single-line
|
||||
min="0"
|
||||
max="10"
|
||||
step="0.1"
|
||||
style="width: 80px;"
|
||||
/>
|
||||
</div>
|
||||
<VSlider
|
||||
v-model="filterParams.min_rating"
|
||||
thumb-label
|
||||
max="10"
|
||||
min="0"
|
||||
:step="0.1"
|
||||
class="align-center"
|
||||
hide-details
|
||||
style="width: 200px;"
|
||||
>
|
||||
<template v-slot:append>
|
||||
<VTextField
|
||||
variant="outlined"
|
||||
width="5rem"
|
||||
v-model="filterParams.max_rating"
|
||||
density="compact"
|
||||
type="number"
|
||||
hide-details
|
||||
single-line
|
||||
min="0"
|
||||
max="10"
|
||||
step="0.1"
|
||||
/>
|
||||
</template>
|
||||
</VSlider>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-start align-center">
|
||||
|
||||
@@ -236,33 +236,31 @@ function removeData(id: number) {
|
||||
<div class="mr-5">
|
||||
<VLabel>{{ t('tmdb.rating') }}</VLabel>
|
||||
</div>
|
||||
<div class="flex align-center" style="width: 300px;">
|
||||
<VTextField
|
||||
v-model="filterParams.min_rating"
|
||||
variant="outlined"
|
||||
density="compact"
|
||||
type="number"
|
||||
hide-details
|
||||
single-line
|
||||
min="0"
|
||||
max="10"
|
||||
step="0.1"
|
||||
style="width: 80px;"
|
||||
/>
|
||||
<span class="mx-2">-</span>
|
||||
<VTextField
|
||||
v-model="filterParams.max_rating"
|
||||
variant="outlined"
|
||||
density="compact"
|
||||
type="number"
|
||||
hide-details
|
||||
single-line
|
||||
min="0"
|
||||
max="10"
|
||||
step="0.1"
|
||||
style="width: 80px;"
|
||||
/>
|
||||
</div>
|
||||
<VSlider
|
||||
v-model="filterParams.min_rating"
|
||||
thumb-label
|
||||
max="10"
|
||||
min="0"
|
||||
:step="0.1"
|
||||
class="align-center"
|
||||
hide-details
|
||||
style="width: 200px;"
|
||||
>
|
||||
<template v-slot:append>
|
||||
<VTextField
|
||||
variant="outlined"
|
||||
width="5rem"
|
||||
v-model="filterParams.max_rating"
|
||||
density="compact"
|
||||
type="number"
|
||||
hide-details
|
||||
single-line
|
||||
min="0"
|
||||
max="10"
|
||||
step="0.1"
|
||||
/>
|
||||
</template>
|
||||
</VSlider>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user