# Clicking on an image inside a footnote doesn't trigger the lightbox

**URL:** https://meta.discourse.org/t/clicking-on-an-image-inside-a-footnote-doesnt-trigger-the-lightbox/355223
**Category:** Bug
**Tags:** footnote, lightbox
**Created:** [March 1, 2025, 7:50pm UTC](https://meta.discourse.org/t/clicking-on-an-image-inside-a-footnote-doesnt-trigger-the-lightbox/355223 "2025-03-01T19:50:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 1, 2025, 7:50pm UTC](https://meta.discourse.org/t/clicking-on-an-image-inside-a-footnote-doesnt-trigger-the-lightbox/355223/1 "2025-03-01T19:50:31Z")

</div>

When clicking on an image inside a footnote, it doesn’t open the lightbox; instead, the browser opens the image in the same window.

 ![The image shows an online interface with a partially hidden banner containing the text "to the Discourse con," along with various icons and buttons. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/7/9/3/7934df4fb469cb11f3b902e6bfca0f06d1c7815d.png)

* * *

Here is an example \[1\]

* * *

1.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [March 1, 2025, 8:39pm UTC](https://meta.discourse.org/t/clicking-on-an-image-inside-a-footnote-doesnt-trigger-the-lightbox/355223/2 "2025-03-01T20:39:05Z")

</div>

The picture should at least be resized instead of cropped.

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [March 1, 2025, 8:53pm UTC](https://meta.discourse.org/t/clicking-on-an-image-inside-a-footnote-doesnt-trigger-the-lightbox/355223/3 "2025-03-01T20:53:03Z")

</div>

It did not even occur to me 😄.  
It’s true that using `òbject-fit: contain` might makes more sense in this context:

 ![The image is a screenshot showing a webpage interface with a lightbox containing an image from Discourse, along with developer tools open in the browser, including consoles and debug panels. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/3/6/1/361efeb95ae36a5cecdaf077aca5402021e4bc21.png)
