pref: add topic tooltip
This commit is contained in:
parent
6d23106324
commit
1e6f434f9f
|
@ -155,9 +155,13 @@ onBeforeUnmount(() => {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
border: 2px solid var(--kungalgame-red-4);
|
border: 2px solid var(--kungalgame-red-4);
|
||||||
|
|
||||||
|
& > div {
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.list-move, /* Applied to moving elements during the transition */
|
.list-move,
|
||||||
.list-enter-active,
|
.list-enter-active,
|
||||||
.list-leave-active {
|
.list-leave-active {
|
||||||
transition: all 0.5s ease;
|
transition: all 0.5s ease;
|
||||||
|
|
|
@ -104,10 +104,20 @@ Link: https://www.kungal.com/topic/${props.info.tid}`
|
||||||
:rid="info.rid"
|
:rid="info.rid"
|
||||||
:upvotes="info.upvotes"
|
:upvotes="info.upvotes"
|
||||||
:to-uid="toUser.uid"
|
:to-uid="toUser.uid"
|
||||||
|
v-tooltip="{
|
||||||
|
message: { en: 'Upvote', zh: '推话题' },
|
||||||
|
position: 'bottom',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Number of views (only shown for the topic owner) -->
|
<!-- Number of views (only shown for the topic owner) -->
|
||||||
<li v-if="info.views > 0">
|
<li
|
||||||
|
v-if="info.views > 0"
|
||||||
|
v-tooltip="{
|
||||||
|
message: { en: 'Views', zh: '浏览数' },
|
||||||
|
position: 'bottom',
|
||||||
|
}"
|
||||||
|
>
|
||||||
<span class="icon"><Icon icon="ic:outline-remove-red-eye" /></span>
|
<span class="icon"><Icon icon="ic:outline-remove-red-eye" /></span>
|
||||||
{{ info.views }}
|
{{ info.views }}
|
||||||
</li>
|
</li>
|
||||||
|
@ -119,6 +129,10 @@ Link: https://www.kungal.com/topic/${props.info.tid}`
|
||||||
:rid="info.rid"
|
:rid="info.rid"
|
||||||
:likes="info.likes"
|
:likes="info.likes"
|
||||||
:to-uid="toUser.uid"
|
:to-uid="toUser.uid"
|
||||||
|
v-tooltip="{
|
||||||
|
message: { en: 'Likes', zh: '点赞数' },
|
||||||
|
position: 'bottom',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Dislike -->
|
<!-- Dislike -->
|
||||||
|
@ -128,6 +142,10 @@ Link: https://www.kungal.com/topic/${props.info.tid}`
|
||||||
:rid="info.rid"
|
:rid="info.rid"
|
||||||
:dislikes="info.dislikes"
|
:dislikes="info.dislikes"
|
||||||
:to-uid="toUser.uid"
|
:to-uid="toUser.uid"
|
||||||
|
v-tooltip="{
|
||||||
|
message: { en: 'Dislikes', zh: '点踩数' },
|
||||||
|
position: 'bottom',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -142,7 +160,14 @@ Link: https://www.kungal.com/topic/${props.info.tid}`
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Share -->
|
<!-- Share -->
|
||||||
<span @click="handleClickShare" class="icon">
|
<span
|
||||||
|
@click="handleClickShare"
|
||||||
|
class="icon"
|
||||||
|
v-tooltip="{
|
||||||
|
message: { en: 'Share', zh: '分享话题' },
|
||||||
|
position: 'bottom',
|
||||||
|
}"
|
||||||
|
>
|
||||||
<Icon icon="majesticons:share-line" />
|
<Icon icon="majesticons:share-line" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -159,6 +184,10 @@ Link: https://www.kungal.com/topic/${props.info.tid}`
|
||||||
:tags="content.tags"
|
:tags="content.tags"
|
||||||
:category="content.category"
|
:category="content.category"
|
||||||
:to-uid="toUser.uid"
|
:to-uid="toUser.uid"
|
||||||
|
v-tooltip="{
|
||||||
|
message: { en: 'Rewrite Topic', zh: 'Rewrite 话题' },
|
||||||
|
position: 'bottom',
|
||||||
|
}"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Comment slot -->
|
<!-- Comment slot -->
|
||||||
|
|
|
@ -41,7 +41,6 @@ const handleClickReply = () => {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
text-align: center;
|
|
||||||
color: var(--kungalgame-blue-4);
|
color: var(--kungalgame-blue-4);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
|
@ -56,6 +55,7 @@ const handleClickReply = () => {
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
color: var(--kungalgame-pink-4);
|
color: var(--kungalgame-pink-4);
|
||||||
|
|
|
@ -137,6 +137,10 @@ const handleClickComment = (
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
class="icon"
|
class="icon"
|
||||||
|
v-tooltip="{
|
||||||
|
message: { en: 'Comment Topic', zh: '评论话题' },
|
||||||
|
position: 'bottom',
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<Icon icon="fa-regular:comment-dots" />
|
<Icon icon="fa-regular:comment-dots" />
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in a new issue