Skip to content

Commit

Permalink
fix(app): news padding
Browse files Browse the repository at this point in the history
  • Loading branch information
qin-guan committed Jan 8, 2024
1 parent 39fce40 commit 2f43ece
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
12 changes: 7 additions & 5 deletions components/app/home/news.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ const { data: news, isLoading: newsIsLoading } = useNewsArticles()
</div>
</f7List>
<template v-else-if="news">
<span v-if="news.length === 0" class="mt-4 opacity-80">
Nothing exciting is happening right now.
<br>
Check back later!
</span>
<f7List inset>
<span v-if="news.length === 0" class="mt-4 opacity-80">
Nothing exciting is happening right now.
<br>
Check back later!
</span>
</f7List>
<f7Card v-for="article in news" :key="article.id" class="m-0!">
<f7CardHeader class="h-44 rounded-[16px]! overflow-hidden bg-center bg-cover relative" valign="bottom" :style="`background-image: url(${article.heroImageUrl})`">
<div class="absolute inset-0 bg-gradient-to-b from-transparent dark:to-black/70 to-white/70" />
Expand Down
1 change: 1 addition & 0 deletions server/api/event/index.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default defineProtectedEventHandler(async (event) => {
throw createError({
statusCode: 400,
statusMessage: 'Bad request',
message: result.error.message,
})
}

Expand Down

0 comments on commit 2f43ece

Please sign in to comment.