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:
116116import { Elysia , t } from ' elysia'
117117
118118import { PrismaClient } from ' ../generated/prisma' // [!code ++]
119- import { UserInputCreate , UserPlain } from ' ../generated/prismabox/User' // [!code ++]
119+ import { UserPlain , UserPlainInputCreate } from ' ../generated/prismabox/User' // [!code ++]
120120
121121const prisma = new PrismaClient ()
122122
@@ -128,7 +128,7 @@ const app = new Elysia()
128128 data: body
129129 }),
130130 {
131- body: UserInputCreate , // [!code ++]
131+ body: UserPlainInputCreate , // [!code ++]
132132 response: UserPlain // [!code ++]
133133 }
134134 )
@@ -139,7 +139,7 @@ const app = new Elysia()
139139 where: { id }
140140 })
141141
142- if (! user ) return status (404 , ' Not Found ' )
142+ if (! user ) return status (404 , ' User not found ' )
143143
144144 return user
145145 },
Original file line number Diff line number Diff line change @@ -410,9 +410,8 @@ button.copy::after {
410410 @apply p-0 ml-auto;
411411
412412 & > .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 ;
414414 left : unset;
415- box-shadow : unset;
416415 transition-duration : 0.5s ;
417416 transition-timing-function : cubic-bezier (0.16 , 1 , 0.3 , 1 );
418417
@@ -434,7 +433,7 @@ button.copy::after {
434433 & > a {
435434 & : hover ,
436435 & : focus {
437- @apply rounded-lg ;
436+ @apply rounded-xl ;
438437 background-color : var (
439438 --vp-c-brand-nav-active
440439 );
@@ -695,6 +694,22 @@ button.copy::after {
695694
696695.VPSidebar {
697696 @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+ }
698713}
699714
700715# VPSidebarNav {
You can’t perform that action at this time.
0 commit comments