Skip to content

Commit

Permalink
[ui]: float right badge first col in index
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed May 28, 2023
1 parent 420a58b commit 7433d07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</BottomBlur>
<Quality
v-if="data.quality"
:class="trending ? 'right-0 top-2 absolute' : undefined"
:class="trending || qualityFloatRight ? 'right-0 top-2 absolute' : undefined"
>{{ data.quality }}</Quality
>
<img v-if="trending" :src="ranks[trending - 1]" class="h-[1.5rem]" />
Expand Down Expand Up @@ -56,6 +56,7 @@ import Star from "./Star.vue"
defineProps<{
data: TPost
trending?: number
qualityFloatRight?: boolean
}>()
</script>

Expand Down
1 change: 1 addition & 0 deletions src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
:key="item.name"
class="card-wrap"
:data="item"
quality-float-right
/>
</div>
</div>
Expand Down

0 comments on commit 7433d07

Please sign in to comment.