Skip to content

Commit

Permalink
fix(web): post styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilfish committed Aug 5, 2024
1 parent 5273dc6 commit b808de8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/ui/src/post/Meta.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ const date = useDateFormat(props.meta.created_at, 'YY-MM-DD HH:mm')
<template>
<div
class="flex flex-wrap items-center justify-end gap-1 text-3 text-gray sm:gap-3"
:style="{
flexDirection: isBody ? 'row' : 'row-reverse',
}"
>
<!-- <a
v-if="'mblogid' in meta && isBody"
Expand All @@ -37,6 +40,7 @@ const date = useDateFormat(props.meta.created_at, 'YY-MM-DD HH:mm')
v-if="'detail_url' in meta"
:href="meta.detail_url"
target="_blank"
class="to-weibo opacity-0 transition-opacity"
>
跳转到原微博
</a>
Expand All @@ -55,3 +59,9 @@ const date = useDateFormat(props.meta.created_at, 'YY-MM-DD HH:mm')
</span>
</div>
</template>

<style lang="scss">
.post:hover a.to-weibo {
opacity: 1;
}
</style>
2 changes: 1 addition & 1 deletion packages/ui/src/post/Retweeted.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defineProps<{

<template>
<article
class="mt-4 flex flex-col gap-2 rounded-2 bg-light p-3 dark:bg-dark"
class="mt-4 flex flex-col gap-2 rounded-2 bg-light p-3 dark:bg-dark-5"
>
<post-profile
v-if="post.user?.uid"
Expand Down

0 comments on commit b808de8

Please sign in to comment.