Skip to content

Commit

Permalink
Icon overlapping with text in text-box of Doctor's Notes. #7495
Browse files Browse the repository at this point in the history
  • Loading branch information
Sulochan-khadka committed Mar 29, 2024
1 parent cd23b66 commit 6f882a3
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions src/Components/Facility/PatientNotesSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,32 +199,36 @@ export default function PatientNotesSlideover(props: PatientNotesProps) {
disableEdit={!patientActive}
/>
<div className="relative mx-4 flex items-center">
<AutoExpandingTextInputFormField
id="doctor_notes_textarea"
maxHeight={160}
rows={1}
name="note"
value={noteField}
onChange={(e) => setNoteField(e.value)}
className="grow"
errorClassName="hidden"
placeholder="Type your Note"
disabled={!patientActive}
onFocus={() => setFocused(true)}
onBlur={() => setFocused(false)}
/>
<ButtonV2
id="add_doctor_note_button"
onClick={onAddNote}
border={false}
className="absolute right-2"
ghost
size="small"
disabled={!patientActive}
authorizeFor={NonReadOnlyUsers}
>
<CareIcon className="care-l-message text-lg" />
</ButtonV2>
<div className=" w-full px-12">
<AutoExpandingTextInputFormField
id="doctor_notes_textarea"
maxHeight={160}
rows={1}
name="note"
value={noteField}
onChange={(e) => setNoteField(e.value)}
className="grow"
errorClassName="hidden"
placeholder="Type your Note"
disabled={!patientActive}
onFocus={() => setFocused(true)}
onBlur={() => setFocused(false)}
/>
</div>
<div className="flex items-center">
<ButtonV2
id="add_doctor_note_button"
onClick={onAddNote}
border={false}
className="absolute right-2"
ghost
size="small"
disabled={!patientActive}
authorizeFor={NonReadOnlyUsers}
>
<CareIcon className="care-l-message text-lg" />
</ButtonV2>
</div>
</div>
</div>
)}
Expand Down

0 comments on commit 6f882a3

Please sign in to comment.