@@ -369,7 +369,7 @@ const Create = ({ session }: { session: Session }) => {
369369 < >
370370 < form onSubmit = { handleSubmit ( onSubmit ) } >
371371 < Transition show = { open } as = { Fragment } >
372- < div className = "fixed bottom-0 left-0 top-0 z-50 h-screen w-full overflow-y-scroll bg-white dark:bg-black" >
372+ < div className = "old-input fixed bottom-0 left-0 top-0 z-50 h-screen w-full overflow-y-scroll bg-white dark:bg-black" >
373373 < div className = "m-2 max-w-full" >
374374 < button
375375 type = "button"
@@ -663,7 +663,7 @@ const Create = ({ session }: { session: Session }) => {
663663 < div className = "mb-4 ml-2 flex items-center gap-2" >
664664 < label
665665 htmlFor = "file-input"
666- className = { `inline- flex items-center gap-1 rounded-md border p-2 text-sm ${ uploadStatus === "loading" ? "border-neutral-600 font-medium text-neutral-600 hover:cursor-not-allowed dark:border-neutral-500 dark:text-neutral-500" : "border-neutral-500 font-medium text-neutral-500 hover:bg-neutral-200 dark:border-neutral-600 dark:text-neutral-600 hover:dark:bg-neutral-800 hover:dark:text-neutral-400" } ` }
666+ className = { `flex flex-row items-center gap-1 rounded-md border p-2 text-sm ${ uploadStatus === "loading" ? "border-neutral-600 font-medium text-neutral-600 hover:cursor-not-allowed dark:border-neutral-500 dark:text-neutral-500" : "border-neutral-500 font-medium text-neutral-500 hover:bg-neutral-200 dark:border-neutral-600 dark:text-neutral-600 hover:dark:bg-neutral-800 hover:dark:text-neutral-400" } ` }
667667 >
668668 { uploadStatus === "loading" ? (
669669 < LoaderCircle
@@ -677,7 +677,7 @@ const Create = ({ session }: { session: Session }) => {
677677 width = { 16 }
678678 className = "mr-1"
679679 />
680- ) } { " " }
680+ ) }
681681 Upload image
682682 </ label >
683683 < input
@@ -707,30 +707,33 @@ const Create = ({ session }: { session: Session }) => {
707707 </ button >
708708 ) }
709709 </ div >
710- { /* TODO: FOLLOW UP WITH THIS, LABEL SHOULD BE VISIBLE */ }
711- < label htmlFor = "article-title" className = "sr-only" >
712- Article title
713- </ label >
714- < input
715- className = "border-none bg-white text-2xl leading-5 outline-none placeholder:text-neutral-400 focus:bg-neutral-200 dark:bg-neutral-900 placeholder:dark:text-neutral-700 focus:dark:bg-black"
716- placeholder = "Article title"
717- type = "text"
718- id = "article-title"
719- { ...register ( "title" ) }
720- />
721-
722- { /* TODO: FOLLOW UP WITH THIS, LABEL SHOULD BE VISIBLE */ }
723- < label htmlFor = "article-content" className = "sr-only" >
724- Enter Article Content
725- </ label >
726- < CustomTextareaAutosize
727- placeholder = "Enter your content here 💖"
728- className = "mb-8 border-none bg-white text-lg shadow-none outline-none placeholder:text-neutral-400 focus:bg-neutral-200 dark:bg-neutral-900 placeholder:dark:text-neutral-700 dark:focus:bg-black"
729- minRows = { 25 }
730- id = "article-content"
731- { ...register ( "body" ) }
732- inputRef = { textareaRef }
733- />
710+ < div className = "flex flex-col" >
711+ < label htmlFor = "article-title" className = "sr-only" >
712+ Article title
713+ </ label >
714+ < input
715+ className = "border-none bg-white text-2xl leading-5 placeholder:text-neutral-400 focus:bg-neutral-200 focus:ring-0 dark:bg-neutral-900 placeholder:dark:text-neutral-700 focus:dark:bg-black"
716+ placeholder = "Article title"
717+ type = "text"
718+ id = "article-title"
719+ { ...register ( "title" ) }
720+ />
721+
722+ < label
723+ htmlFor = "article-content"
724+ className = "sr-only"
725+ >
726+ Enter Article Content
727+ </ label >
728+ < CustomTextareaAutosize
729+ placeholder = "Enter your content here 💖"
730+ className = "mb-8 border-none bg-white text-lg shadow-none outline-none placeholder:text-neutral-400 focus:bg-neutral-200 focus:ring-0 dark:bg-neutral-900 placeholder:dark:text-neutral-700 dark:focus:bg-black"
731+ minRows = { 25 }
732+ id = "article-content"
733+ { ...register ( "body" ) }
734+ inputRef = { textareaRef }
735+ />
736+ </ div >
734737
735738 < div className = "flex items-center justify-between" >
736739 < >
0 commit comments