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

Add a modal for images to expand to upon being clicked instead of leaving the current page #858

Merged
merged 5 commits into from
Mar 27, 2025

Conversation

cotti
Copy link
Contributor

@cotti cotti commented Mar 26, 2025

Fixes #304

Images inserted using the {image} directive were clickable. It would however send the user directly to the image resource in the same tab, disrupting the usage of the docs.

New behavior upon clicking an image:

Captura de Tela 2025-03-26 às 15 21 41
  • Clicking on either the X in the upper-right corner or anywhere in the dimmed area closes the modal.
  • Clicking the expanded image allows it to open in a new tab.

@cotti cotti self-assigned this Mar 26, 2025
@cotti cotti requested a review from a team as a code owner March 26, 2025 18:29
Copy link
Member

@bmorelli25 bmorelli25 left a comment

Choose a reason for hiding this comment

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

A much better image viewing experience!

Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

Small nitpick LGTM otherwise!

@cotti cotti requested a review from Mpdreamz March 26, 2025 23:20
@cotti cotti merged commit 6e12eea into main Mar 27, 2025
12 checks passed
@cotti cotti deleted the feature/image_expand branch March 27, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Images should enlarge on the page
4 participants