Fix long statuses. Not perfect but good for now

This commit is contained in:
Gabriel Brown 2024-09-24 11:14:32 -05:00
parent aab4efbb00
commit 787fcb0031

View File

@ -213,18 +213,18 @@ export default function Tech_Table({ employees }: { employees: Employee[] }) {
</td> </td>
<td className="s-column max-w-[700px] px-1 md:py-3 border <td className="s-column max-w-[700px] px-1 md:py-3 border
border-[#3e4446] wrapword max-h-0"> border-[#3e4446] wrapword max-h-0">
<ScrollArea className="w-full m-auto h-[60px]">
<Drawer> <Drawer>
<DrawerTrigger> <DrawerTrigger>
<button onClick={() => handleStatusClick(employee.id)}> <button onClick={() => handleStatusClick(employee.id)}>
<ScrollArea className="w-full m-auto h-[60px]">
{employee.status} {employee.status}
</ScrollArea>
</button> </button>
</DrawerTrigger> </DrawerTrigger>
{selectedUserId !== -1 && ( {selectedUserId !== -1 && (
<History_Drawer key={selectedUserId} user_id={selectedUserId} /> <History_Drawer key={selectedUserId} user_id={selectedUserId} />
)} )}
</Drawer> </Drawer>
</ScrollArea>
</td> </td>
<td className="ua-column px-1 md:py-3 border border-[#3e4446]"> <td className="ua-column px-1 md:py-3 border border-[#3e4446]">
{formatTime(employee.updatedAt)} {formatTime(employee.updatedAt)}