Skip to content
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

Attachment Improvements #90

Draft
wants to merge 8 commits into
base: develop
Choose a base branch
from
Draft

Conversation

khakers
Copy link
Owner

@khakers khakers commented Aug 4, 2023

Improves attachment support in Modmail-Viewer with a lightbox, better formatting, and a more discord like display for non media files.

@khakers khakers added enhancement New feature or request java Pull requests that update Java code labels Aug 4, 2023
@khakers khakers added this to the v1.0 milestone Aug 4, 2023
@khakers khakers self-assigned this Aug 4, 2023
@khakers khakers removed this from the v1.0 milestone Oct 11, 2023
@khakers
Copy link
Owner Author

khakers commented Oct 11, 2023

No longer targeted to v1.
Attachments will be broken soon anyways and I don't have enough time to do anything beyond potentially somewhat fixing them.

@khakers khakers force-pushed the feature/attachment-improvements branch from 17c0903 to 22ad879 Compare January 23, 2024 06:49
Adds attachment cards for all non-media (image/video) type attachments. Moves videos into
… grid

In the future it would be nice to add some logic to the image grid like how discord does it. It would likely require a lightbox which doesn't work properly at the moment.
Integrates Glightbox into thread images and videos.
Disables pointer events on spoilered image
Reformats the CSP headers declaration and adds some inline styles that glightbox uses as well as discord cdn/media URLs to frame-src
Galleries do not yet work, they may need to be manually set in JS with a compiler or such
Each message has a gallery id of the index of the message. Each message should be its own gallery, so you can't accidentally page to a different messages attachments. Mirrors discord behavior.
@khakers khakers force-pushed the feature/attachment-improvements branch from 22ad879 to 17dad52 Compare January 23, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant