Improve <Task> textarea

This commit is contained in:
0x1eef 2024-04-21 00:53:03 -03:00
parent 702959b154
commit dee16f97f9
3 changed files with 5 additions and 4 deletions

View file

@ -52,6 +52,7 @@ form {
height: 75%; height: 75%;
border: none; border: none;
outline: none; outline: none;
resize: none;
} }
} }

View file

@ -22,7 +22,7 @@ export function Tabs({ defaultLabel, labels, onChange }: Props) {
}, [active]); }, [active]);
return ( return (
<ul className="flex w-3/4"> <ul className="flex w-full">
{...tabs.map(tab => { {...tabs.map(tab => {
const isActive = active?.id === tab.id; const isActive = active?.id === tab.id;
const classNames = { const classNames = {

View file

@ -72,8 +72,8 @@ export function Task() {
<div className="w-1/4 pl-5"> <div className="w-1/4 pl-5">
<NavBar /> <NavBar />
</div> </div>
<div className="pt-5 w-full max-w-screen-lg"> <div className="pt-5 w-full max-w-screen-md">
<form className="h-full" onSubmit={handleSubmit(onSave)}> <form className="h-full w-full" onSubmit={handleSubmit(onSave)}>
<input <input
type="hidden" type="hidden"
{...register("projectId", { {...register("projectId", {
@ -81,7 +81,7 @@ export function Task() {
})} })}
/> />
<input <input
className="p-3 flex w-3/4 mb-3 outline-none" className="p-3 flex mb-3 outline-none w-full"
type="text" type="text"
placeholder="Title" placeholder="Title"
defaultValue={task?.title} defaultValue={task?.title}