fixes overflow text, z-index and reply functionality breaking in Notes #8663
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
z-index
problems where elements in the single chat header (such as "created at") were overlapping improperly.Video of changes:
Notes_chat_fix.mp4
UI Improvements:
src/Components/Facility/ConsultationDoctorNotes/index.tsx
: Addedz-10
class to the top div to ensure it appears above other elements.src/Components/Facility/DoctorNoteReplyPreviewCard.tsx
: Added auseEffect
hook to scroll to the bottom of the notes when a new note is added.src/Components/Facility/DoctorNoteReplyPreviewCard.tsx
: Limited the height of the note display area and added overflow auto for better readability.src/Components/Facility/PatientNoteCard.tsx
: Ensured the note field breaks words and addedautoFocus
to the text area when editing. [1] [2]Functional Enhancements:
src/Components/Facility/PatientNoteCard.tsx
: IntegrateduseKeyboardShortcut
to allow closing the edit mode with theEscape
key.src/Components/Facility/PatientNoteCard.tsx
: Added visual keyboard shortcut hint for theEscape
key.Consistency Updates:
src/Components/Facility/ConsultationDoctorNotes/index.tsx
: Updated button styling to include focus states for better accessibility.src/Components/Patient/PatientNotes.tsx
: Applied similar changes as inConsultationDoctorNotes
to maintain consistency across components. [1] [2]@ohcnetwork/care-fe-code-reviewers
Merge Checklist