Commit 4e2c6e3b by lijiabin

【需求 25171】fix: 任务中心任务说明提示框第一项朝下、其余朝上,避免遮挡标签和下一项

parent b82ae1ad
......@@ -242,7 +242,7 @@
<div class="flex flex-col gap-2 sm:gap-3">
<transition name="fade-home" mode="out-in">
<div v-if="currentTaskList.length">
<div v-for="item in currentTaskList" :key="item.id">
<div v-for="(item, index) in currentTaskList" :key="item.id">
<div
class="flex items-center justify-between hover:bg-white/10 rounded-lg transition-colors duration-200 group"
>
......@@ -253,7 +253,12 @@
<div
class="flex flex-col items-start justify-center mx-2 sm:ml-3 min-w-0 flex-1"
>
<el-tooltip :content="item.description" placement="top">
<!-- 第一项提示放下面(放上面会盖住任务切换标签),其余放上面(放下面会盖住下一项的奖励文案) -->
<el-tooltip
:content="item.description"
:placement="index === 0 ? 'bottom' : 'top'"
:fallback-placements="[]"
>
<div
class="lg:text-sm text-xs truncate w-full font-medium mb-1 cursor-pointer"
>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment