Skip to content

Commit

Permalink
fix(nav): 🐛 fix bug of wrong image display
Browse files Browse the repository at this point in the history
  • Loading branch information
wrzrmzx committed Jan 16, 2024
1 parent 9c925c0 commit b26e24b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/navigator/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
:href="'/' + latestLink"
>
<div
class="w-16 h-16 md:w-20 md:h-20 bg-[length:192px_192px] md:bg-[length:240px_240px]"
:style="'background-image: url(' + latestIcon + ')'"
class="w-16 h-16 md:w-20 md:h-20 bg-[length:192px_192px] md:bg-[length:240px_240px]"
:class="resultListIconPosition[resultListRaw.length % 9]"
/>
<div>
<div class="text-2xl md:text-4xl text-pink-600">
Expand Down Expand Up @@ -81,7 +82,7 @@ const resultListIconPosition = [
'bg-right',
'bg-left-bottom',
'bg-bottom',
'bg=right-bottom',
'bg-right-bottom',
]
const resultList = resultListRaw.reverse()
const latest = resultList[0]
Expand Down

0 comments on commit b26e24b

Please sign in to comment.