Fix favorites edit mode dropdown

This commit is contained in:
Natsumi
2025-09-30 14:34:32 +13:00
parent a7a8c2a170
commit 5aad0559a0
3 changed files with 18 additions and 16 deletions

View File

@@ -10,13 +10,14 @@
<span class="extra" v-text="localFavFakeRef.authorName"></span>
</div>
<div class="editing">
<el-dropdown trigger="click" size="small" style="margin-left: 5px">
<el-dropdown trigger="hover" size="small" style="margin-left: 5px">
<div>
<el-tooltip placement="top" :content="tooltipContent">
<el-button type="default" :icon="Back" size="small" circle></el-button>
</el-tooltip>
<el-button type="default" :icon="Back" size="small" circle></el-button>
</div>
<template #dropdown>
<span style="font-weight: bold; display: block; text-align: center">
{{ t(tooltipContent) }}
</span>
<el-dropdown-menu>
<template v-for="groupAPI in favoriteAvatarGroups" :key="groupAPI.name">
<el-dropdown-item

View File

@@ -19,13 +19,14 @@
<span v-else v-text="favorite.ref.statusDescription"></span>
</div>
<div class="editing">
<el-dropdown trigger="click" size="small" style="margin-left: 5px">
<el-dropdown trigger="hover" size="small" style="margin-left: 5px">
<div>
<el-tooltip placement="left" :content="t('view.favorite.move_tooltip')">
<el-button type="default" :icon="Back" size="small" circle></el-button>
</el-tooltip>
<el-button type="default" :icon="Back" size="small" circle></el-button>
</div>
<template #dropdown>
<span style="font-weight: bold; display: block; text-align: center">
{{ t('view.favorite.move_tooltip') }}
</span>
<el-dropdown-menu>
<template v-for="groupAPI in favoriteFriendGroups" :key="groupAPI.name">
<el-dropdown-item

View File

@@ -13,17 +13,14 @@
<span v-else class="extra">{{ localFavFakeRef.authorName }}</span>
</div>
<div class="editing">
<el-dropdown trigger="click" size="small" style="margin-left: 5px">
<el-dropdown trigger="hover" size="small" style="margin-left: 5px">
<div>
<el-tooltip
placement="left"
:content="
t(localFavFakeRef ? 'view.favorite.copy_tooltip' : 'view.favorite.move_tooltip')
">
<el-button type="default" :icon="Back" size="small" circle></el-button>
</el-tooltip>
<el-button type="default" :icon="Back" size="small" circle></el-button>
</div>
<template #dropdown>
<span style="font-weight: bold; display: block; text-align: center">
{{ t(tooltipContent) }}
</span>
<el-dropdown-menu>
<template v-for="groupAPI in favoriteWorldGroups" :key="groupAPI.name">
<el-dropdown-item
@@ -159,6 +156,9 @@
});
const localFavFakeRef = computed(() => (props.isLocalFavorite ? props.favorite : props.favorite.ref));
const tooltipContent = computed(() =>
t(props.isLocalFavorite ? 'view.favorite.copy_tooltip' : 'view.favorite.move_tooltip')
);
const smallThumbnail = computed(() => {
const url = localFavFakeRef.value.thumbnailImageUrl.replace('256', '128');