mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
Fix favorites edit mode dropdown
This commit is contained in:
@@ -10,13 +10,14 @@
|
|||||||
<span class="extra" v-text="localFavFakeRef.authorName"></span>
|
<span class="extra" v-text="localFavFakeRef.authorName"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="editing">
|
<div class="editing">
|
||||||
<el-dropdown trigger="click" size="small" style="margin-left: 5px">
|
<el-dropdown trigger="hover" size="small" style="margin-left: 5px">
|
||||||
<div>
|
<div>
|
||||||
<el-tooltip placement="top" :content="tooltipContent">
|
<el-button type="default" :icon="Back" size="small" circle></el-button>
|
||||||
<el-button type="default" :icon="Back" size="small" circle></el-button>
|
|
||||||
</el-tooltip>
|
|
||||||
</div>
|
</div>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
|
<span style="font-weight: bold; display: block; text-align: center">
|
||||||
|
{{ t(tooltipContent) }}
|
||||||
|
</span>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<template v-for="groupAPI in favoriteAvatarGroups" :key="groupAPI.name">
|
<template v-for="groupAPI in favoriteAvatarGroups" :key="groupAPI.name">
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
|
|||||||
@@ -19,13 +19,14 @@
|
|||||||
<span v-else v-text="favorite.ref.statusDescription"></span>
|
<span v-else v-text="favorite.ref.statusDescription"></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="editing">
|
<div class="editing">
|
||||||
<el-dropdown trigger="click" size="small" style="margin-left: 5px">
|
<el-dropdown trigger="hover" size="small" style="margin-left: 5px">
|
||||||
<div>
|
<div>
|
||||||
<el-tooltip placement="left" :content="t('view.favorite.move_tooltip')">
|
<el-button type="default" :icon="Back" size="small" circle></el-button>
|
||||||
<el-button type="default" :icon="Back" size="small" circle></el-button>
|
|
||||||
</el-tooltip>
|
|
||||||
</div>
|
</div>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
|
<span style="font-weight: bold; display: block; text-align: center">
|
||||||
|
{{ t('view.favorite.move_tooltip') }}
|
||||||
|
</span>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<template v-for="groupAPI in favoriteFriendGroups" :key="groupAPI.name">
|
<template v-for="groupAPI in favoriteFriendGroups" :key="groupAPI.name">
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
|
|||||||
@@ -13,17 +13,14 @@
|
|||||||
<span v-else class="extra">{{ localFavFakeRef.authorName }}</span>
|
<span v-else class="extra">{{ localFavFakeRef.authorName }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="editing">
|
<div class="editing">
|
||||||
<el-dropdown trigger="click" size="small" style="margin-left: 5px">
|
<el-dropdown trigger="hover" size="small" style="margin-left: 5px">
|
||||||
<div>
|
<div>
|
||||||
<el-tooltip
|
<el-button type="default" :icon="Back" size="small" circle></el-button>
|
||||||
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>
|
|
||||||
</div>
|
</div>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
|
<span style="font-weight: bold; display: block; text-align: center">
|
||||||
|
{{ t(tooltipContent) }}
|
||||||
|
</span>
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<template v-for="groupAPI in favoriteWorldGroups" :key="groupAPI.name">
|
<template v-for="groupAPI in favoriteWorldGroups" :key="groupAPI.name">
|
||||||
<el-dropdown-item
|
<el-dropdown-item
|
||||||
@@ -159,6 +156,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const localFavFakeRef = computed(() => (props.isLocalFavorite ? props.favorite : props.favorite.ref));
|
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 smallThumbnail = computed(() => {
|
||||||
const url = localFavFakeRef.value.thumbnailImageUrl.replace('256', '128');
|
const url = localFavFakeRef.value.thumbnailImageUrl.replace('256', '128');
|
||||||
|
|||||||
Reference in New Issue
Block a user