update UI

This commit is contained in:
JOSEPH LE 2024-08-07 08:33:15 +07:00
parent 1dc7cf579c
commit cb65f1fffc
1 changed files with 2 additions and 2 deletions

View File

@ -427,10 +427,10 @@ const LeaveManagement = () => {
{totalDayLeave - totalDayOff}
</Table.Td>
<Table.Td>
<Box style={{display: ld_note === ""? 'none' : 'block'}}>
<Box style={{display: ld_note === "" || ld_note === null? 'none' : 'block'}}>
<HoverCard width={280} shadow="md" >
<HoverCard.Target>
<Text fz={'sm'}>{ld_note !== null && ld_note.slice(0,25)}...</Text>
<Text fz={'sm'}>{ld_note !== null && ld_note !== "" && ld_note.slice(0,25)+"..."}</Text>
</HoverCard.Target>
<HoverCard.Dropdown>
<Textarea size="sm" autosize>