File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ Then we can import the generated models in our Elysia application:
116
116
import { Elysia , t } from ' elysia'
117
117
118
118
import { PrismaClient } from ' ../generated/prisma' // [!code ++]
119
- import { UserInputCreate , UserPlain } from ' ../generated/prismabox/User' // [!code ++]
119
+ import { UserPlain , UserPlainInputCreate } from ' ../generated/prismabox/User' // [!code ++]
120
120
121
121
const prisma = new PrismaClient ()
122
122
@@ -128,7 +128,7 @@ const app = new Elysia()
128
128
data: body
129
129
}),
130
130
{
131
- body: UserInputCreate , // [!code ++]
131
+ body: UserPlainInputCreate , // [!code ++]
132
132
response: UserPlain // [!code ++]
133
133
}
134
134
)
@@ -139,7 +139,7 @@ const app = new Elysia()
139
139
where: { id }
140
140
})
141
141
142
- if (! user ) return status (404 , ' Not Found ' )
142
+ if (! user ) return status (404 , ' User not found ' )
143
143
144
144
return user
145
145
},
Original file line number Diff line number Diff line change @@ -410,9 +410,8 @@ button.copy::after {
410
410
@apply p-0 ml-auto;
411
411
412
412
& > .items {
413
- @apply top-10 right-4 md:right-0 w-full max-w-[calc (100% -32px )] sm:max-w-sm !bg-white/75 dark:!bg-slate-900/75 p-1 rounded-xl border border-slate-700/10 dark:border-slate-300/10 backdrop-blur-md;
413
+ @apply top-10 right-4 md:right-0 max-w-[calc (100% -32px )] sm:max-w-sm !bg-white/75 dark:!bg-slate-900/75 p-1 rounded-2xl border border-slate-700/10 dark:border-slate-300/10 backdrop-blur-md shadow-2xl shadow-black/5 ;
414
414
left : unset;
415
- box-shadow : unset;
416
415
transition-duration : 0.5s ;
417
416
transition-timing-function : cubic-bezier (0.16 , 1 , 0.3 , 1 );
418
417
@@ -434,7 +433,7 @@ button.copy::after {
434
433
& > a {
435
434
& : hover ,
436
435
& : focus {
437
- @apply rounded-lg ;
436
+ @apply rounded-xl ;
438
437
background-color : var (
439
438
--vp-c-brand-nav-active
440
439
);
@@ -695,6 +694,22 @@ button.copy::after {
695
694
696
695
.VPSidebar {
697
696
@apply !pb-6 ;
697
+
698
+ /* Vitepress breakpoint */
699
+ @media (max-width : 959px ) {
700
+ @apply !p-2 !bg-transparent;
701
+
702
+ & > .nav {
703
+ @apply p-4 pt-2 bg-white/85 dark:bg-gray-800/85 border dark:border-gray-700 border-gray-200 rounded-xl backdrop-blur shadow-lg;
704
+ }
705
+ }
706
+ }
707
+
708
+ .VPBackdrop .backdrop {
709
+ /* Vitepress breakpoint */
710
+ @media (max-width : theme (--breakpoint-lg )) {
711
+ @apply !bg- black/ 5 ;
712
+ }
698
713
}
699
714
700
715
# VPSidebarNav {
You can’t perform that action at this time.
0 commit comments