Skip to content

Conversation

@cesarmr-github
Copy link
Contributor

Currently, images in the Pterodactyl file manager cannot be viewed directly.
This pull request adds support for previewing image files by opening them in a modal when clicked.

The new behavior improves usability by allowing users to quickly view image contents without downloading them or leaving the file manager. The implementation is lightweight and integrates seamlessly with the existing UI.

Preview:
image
image
(Idea taken from an add-on from builtbybit)

Copy link

@lajczi lajczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

Can you please format code with Prettier?
I just recommend installing Prettier extension in your IDE (JetBrains/VSCode/etc)

Further review will be by @DaneEveritt :D

@lajczi
Copy link

lajczi commented Dec 26, 2025

Oh and also please fix lint 😭

@cesarmr-github
Copy link
Contributor Author

cesarmr-github commented Dec 26, 2025

Thanks for your contribution!

Can you please format code with Prettier? I just recommend installing Prettier extension in your IDE (JetBrains/VSCode/etc)

Further review will be by @DaneEveritt :D

I format it with prettier and it gives me 50 more things to change 😭
But as such it would already be, only strange things come out now.
If you would like to suggest any changes, I would be delighted to accept them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants