-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate/comments-modal component #218
base: 8.0.x
Are you sure you want to change the base?
Conversation
hi, there! |
I have requested for @AusBruce to review this PR |
Ontrack Component-Comments-Modal Migration review doubtfire-lms#519Review by Team Member AtharvComponent Name: Comments ModalComponent Review:Hi Eliya, firstly you've done a great job migrating the "comments-modal" component, so Kudos to that!!! So, if you could just click on this link you could see few suggestions I posted, so please have a look on that as well. |
Review: The replacement files are created successfully. |
Great work so far @b0ink One thing I noticed when testing with an image, if it's too big it was scrollable in the original, and in the new version it just restricts it to the viewport size. Could you look into this? Also, if possible, can you use Tailwind classes for the styles instead of SCSS |
@satikaj Closest I could get to make it scrollable like the original from within the component's styling was adding scroll overflow on just the modal itself 8ff67d2 but if we wanted the same behaviour as bootstrap's modals where you can also scroll on the opaque backdrop we would have to add overflow to .cdk-global-overlay-wrapper globally - but this would break the click to close modal functionality Also worth noting that the modal's box-shadow is lost due to this commit |
I see. Should be fine since this is the closest we can get it. Please make an upstream PR to doubtfire-lms/doubtfire-web 9.x branch @b0ink |
Made one small change to use PR has been opened: doubtfire-lms#869 |
9d4a70f
to
d9c64b0
Compare
Student ID: s222313935
Description
Migrates the
comments-modal
component from CoffeeScript to TypeScript. This component is used to display images and PDFs from the task comments as a fullscreen modal popup, allowing users to view the content without needing to download or open it in another tab.Type of change
How Has This Been Tested?
student_1
and select any unit and any task.comments-modal
is working correctly by clicking on the attachments in the comments and view images in fullscreen or PDFs embedded into the modal.Before (images):
After (images):
Before (PDFs):
After (PDFs):
Testing Checklist:
Checklist:
Component review PR: thoth-tech/documentation#519