Skip to content

Commit

Permalink
fix: 作者面板无法显示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Plumbiu committed Feb 3, 2023
1 parent 0470467 commit 857d2bf
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions frontend/components/ArticlesList/Item/Topbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ defineProps({

<template>
<div class="topbar">
<span class="author_id">{{ name }}</span>
<div class="author_id">
{{ name }}
<ArticlesListItemAuthorInfo
:name="name"
:duration="duration"
class="author_info"
/>
</div>
<span class="duration">{{ duration }}</span>
<div class="tag_container">
<div v-for="(item, index) of tags" :key="item.tag" class="tag">
Expand All @@ -21,11 +28,6 @@ defineProps({
</div>
</div>
</div>
<ArticlesListItemAuthorInfo
:name="name"
:duration="duration"
class="author_info"
/>
</template>

<style scoped>
Expand All @@ -36,10 +38,10 @@ defineProps({
@apply transition text-jj-font px-3 border-r-1 pl-0 hover:text-[#1E80FF]
}
.author_info {
/* display: none; */
@apply display-none
}
.author_id:hover .author_info {
display: none;
@apply display-block
}
.duration {
@apply text-jj-thirdly px-3 border-r-1
Expand Down

0 comments on commit 857d2bf

Please sign in to comment.