Skip to content

Commit

Permalink
chore: style optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Apr 11, 2024
1 parent 3ea62d0 commit 7b9ef92
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
8 changes: 4 additions & 4 deletions components/module/Image.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const text = computed(() => extractTextFromHTML(props.module.content))
</script>

<template>
<div class="module shu-card p-4 space-y-3 flex flex-col justify-between">
<div class="space-y-3">
<div class="px-2">
<div class="module shu-card p-3 space-y-4 flex flex-col justify-between">
<div class="space-y-4">
<div class="px-3 pt-1">
{{ formatDateTime(module.date) }}
</div>
<div v-if="props.module.image" class="shadow-sm max-h-96 rounded-xl relative overflow-hidden">
Expand All @@ -29,7 +29,7 @@ const text = computed(() => extractTextFromHTML(props.module.content))
/>
</div>
</div>
<div class="space-y-3 px-2 pb-3">
<div class="space-y-4 px-3 pb-3">
<h3 v-if="!flow?.configNoTitle" class="font-bold text-2xl tracking-tight text-black">
{{ props.module.title }}
</h3>
Expand Down
2 changes: 1 addition & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ body {
}
.shu-card {
@apply relative hover:shadow-2xl transition-all h-full overflow-hidden rounded-3xl bg-white text-sm leading-6;
@apply relative hover:z-10 hover:shadow-2xl transition-all h-full overflow-hidden rounded-3xl bg-white text-sm leading-6;
}
.nexmoe-bg {
Expand Down
24 changes: 13 additions & 11 deletions server/middleware/update-site-config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// // https://trpc-nuxt.vercel.app/get-started/tips/server-side-calls
// import { appRouter } from '@/server/trpc/routers'
// https://trpc-nuxt.vercel.app/get-started/tips/server-side-calls
import { appRouter } from '@/server/trpc/routers'

// export default eventHandler(async (e) => {
// const caller = appRouter.createCaller({ prisma: e.context.prisma })
export default eventHandler(async (e) => {
const caller = appRouter.createCaller({ prisma: e.context.prisma })

Check failure on line 5 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces

// const config = await caller.config.get()
// updateSiteConfig({
// name: config.siteName,
// description: config.siteDescription,
// url: config.siteUrl,
// })
// })
const config = await caller.config.get()

Check failure on line 7 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
// eslint-disable-next-line no-console

Check failure on line 8 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
console.log(config)

Check failure on line 9 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
// updateSiteConfig({

Check failure on line 10 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
// name: config.siteName,

Check failure on line 11 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
// description: config.siteDescription,

Check failure on line 12 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
// url: config.siteUrl,

Check failure on line 13 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
// })

Check failure on line 14 in server/middleware/update-site-config.ts

View workflow job for this annotation

GitHub Actions / testCodebase

Expected indentation of 1 tab but found 4 spaces
})

0 comments on commit 7b9ef92

Please sign in to comment.