mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
调整多个组件的样式和结构,优化用户界面体验
This commit is contained in:
@@ -229,7 +229,7 @@ const dropdownItems = ref([
|
|||||||
class="flex flex-col align-self-baseline justify-between px-2 py-2 w-full overflow-hidden max-h-10 min-h-10"
|
class="flex flex-col align-self-baseline justify-between px-2 py-2 w-full overflow-hidden max-h-10 min-h-10"
|
||||||
>
|
>
|
||||||
<div class="flex flex-nowrap items-center w-full pe-10">
|
<div class="flex flex-nowrap items-center w-full pe-10">
|
||||||
<div class="flex flex-nowrap max-w-32 items-center align-middle">
|
<div class="flex flex-nowrap max-w-40 items-center align-middle">
|
||||||
<VIcon icon="mdi-github" class="me-1" />
|
<VIcon icon="mdi-github" class="me-1" />
|
||||||
<a
|
<a
|
||||||
class="overflow-hidden text-ellipsis whitespace-nowrap"
|
class="overflow-hidden text-ellipsis whitespace-nowrap"
|
||||||
|
|||||||
@@ -473,7 +473,7 @@ watch(
|
|||||||
class="flex flex-col align-self-baseline justify-between px-2 py-2 w-full overflow-hidden max-h-10 min-h-10"
|
class="flex flex-col align-self-baseline justify-between px-2 py-2 w-full overflow-hidden max-h-10 min-h-10"
|
||||||
>
|
>
|
||||||
<div class="flex flex-nowrap items-center w-full pe-10">
|
<div class="flex flex-nowrap items-center w-full pe-10">
|
||||||
<div class="flex flex-nowrap max-w-32 items-center align-middle">
|
<div class="flex flex-nowrap max-w-40 items-center align-middle">
|
||||||
<VImg :src="authorPath" class="author-avatar" @load="isAvatarLoaded = true">
|
<VImg :src="authorPath" class="author-avatar" @load="isAvatarLoaded = true">
|
||||||
<VIcon v-if="!isAvatarLoaded" size="small" icon="mdi-github" class="me-1" />
|
<VIcon v-if="!isAvatarLoaded" size="small" icon="mdi-github" class="me-1" />
|
||||||
</VImg>
|
</VImg>
|
||||||
|
|||||||
@@ -179,7 +179,13 @@ const resolveProgress = (item: Workflow) => {
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
:class="{ 'transition transform-cpu duration-300 -translate-y-1': hover.isHovering }"
|
:class="{ 'transition transform-cpu duration-300 -translate-y-1': hover.isHovering }"
|
||||||
>
|
>
|
||||||
<VCardItem class="py-3" :class="`bg-${resolveStatusVariant(workflow?.state).color}`">
|
<VCardItem
|
||||||
|
:class="{
|
||||||
|
'py-1': workflow?.description,
|
||||||
|
'py-3': !workflow?.description,
|
||||||
|
[`bg-${resolveStatusVariant(workflow?.state).color}`]: true,
|
||||||
|
}"
|
||||||
|
>
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VAvatar variant="text" class="me-2">
|
<VAvatar variant="text" class="me-2">
|
||||||
<VIcon
|
<VIcon
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ const $toast = useToast()
|
|||||||
{{ props.sub?.season ? t('dialog.subscribeShare.season', { number: props.sub?.season }) : '' }}
|
{{ props.sub?.season ? t('dialog.subscribeShare.season', { number: props.sub?.season }) : '' }}
|
||||||
</VCardSubtitle>
|
</VCardSubtitle>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
|
<VDivider />
|
||||||
<VCardText>
|
<VCardText>
|
||||||
<VDialogCloseBtn @click="emit('close')" />
|
<VDialogCloseBtn @click="emit('close')" />
|
||||||
<VForm @submit.prevent="() => {}" class="pt-2">
|
<VForm @submit.prevent="() => {}" class="pt-2">
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ const doubanId = ref<string | undefined>()
|
|||||||
|
|
||||||
const tableStyle = computed(() => {
|
const tableStyle = computed(() => {
|
||||||
return appMode
|
return appMode
|
||||||
? 'height: calc(100vh - 20rem - env(safe-area-inset-bottom) - 6.5rem)'
|
? 'height: calc(100vh - 21rem - env(safe-area-inset-bottom) - 6.5rem)'
|
||||||
: 'height: calc(100vh - 20rem - env(safe-area-inset-bottom)'
|
: 'height: calc(100vh - 21rem - env(safe-area-inset-bottom)'
|
||||||
})
|
})
|
||||||
|
|
||||||
// 调用API加载缓存数据
|
// 调用API加载缓存数据
|
||||||
@@ -251,14 +251,14 @@ onMounted(() => {
|
|||||||
:disabled="selectedItems.length === 0"
|
:disabled="selectedItems.length === 0"
|
||||||
@click="deleteSelectedItems"
|
@click="deleteSelectedItems"
|
||||||
>
|
>
|
||||||
<VIcon>mdi-delete</VIcon>
|
<VIcon>mdi-delete-sweep</VIcon>
|
||||||
<VTooltip activator="parent" location="bottom"
|
<VTooltip activator="parent" location="bottom"
|
||||||
>{{ t('setting.cache.deleteSelected') }} ({{ selectedItems.length }})</VTooltip
|
>{{ t('setting.cache.deleteSelected') }} ({{ selectedItems.length }})</VTooltip
|
||||||
>
|
>
|
||||||
</VBtn>
|
</VBtn>
|
||||||
|
|
||||||
<VBtn icon color="error" :loading="loading" @click="clearAllCache">
|
<VBtn icon color="error" :loading="loading" @click="clearAllCache">
|
||||||
<VIcon>mdi-delete-sweep</VIcon>
|
<VIcon>mdi-delete-variant</VIcon>
|
||||||
<VTooltip activator="parent" location="bottom">{{ t('setting.cache.clearAll') }}</VTooltip>
|
<VTooltip activator="parent" location="bottom">{{ t('setting.cache.clearAll') }}</VTooltip>
|
||||||
</VBtn>
|
</VBtn>
|
||||||
</div>
|
</div>
|
||||||
@@ -411,10 +411,9 @@ onMounted(() => {
|
|||||||
<!-- 空状态 -->
|
<!-- 空状态 -->
|
||||||
<template #no-data>
|
<template #no-data>
|
||||||
<div class="text-center pa-4">
|
<div class="text-center pa-4">
|
||||||
<VIcon size="64" color="grey-lighten-2" class="mb-4"> mdi-database-off </VIcon>
|
<VIcon size="64" class="mb-4"> mdi-database-off </VIcon>
|
||||||
<div class="text-h6 text-grey">{{ t('setting.cache.noData') }}</div>
|
|
||||||
<div class="text-body-2 text-grey">
|
<div class="text-body-2 text-grey">
|
||||||
{{ t('setting.cache.noDataHint') }}
|
{{ t('setting.cache.noData') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -424,7 +423,7 @@ onMounted(() => {
|
|||||||
<!-- 重新识别对话框 -->
|
<!-- 重新识别对话框 -->
|
||||||
<VDialog v-model="reidentifyDialog" scrollable max-width="35rem" :fullscreen="!display.mdAndUp.value">
|
<VDialog v-model="reidentifyDialog" scrollable max-width="35rem" :fullscreen="!display.mdAndUp.value">
|
||||||
<VCard>
|
<VCard>
|
||||||
<VCardItem>
|
<VCardItem class="py-2">
|
||||||
<template #prepend>
|
<template #prepend>
|
||||||
<VIcon>mdi-text-recognition</VIcon>
|
<VIcon>mdi-text-recognition</VIcon>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user