hugo-toha / toha

A Hugo theme for personal portfolio
https://hugo-toha.github.io
MIT License
1.03k stars 586 forks source link

Feature Request: Do not allow image width that is lesser than page width to fill/fit the remaining page width #948

Open dsync89 opened 4 months ago

dsync89 commented 4 months ago

Currently the image smaller than the page width will always fill the full page width, which cause some less wide image to zoomed in.

Describe the solution you'd like

Maybe using javascript to render the image, like Lightbox with magnifier ?

Additional context

Notice how the second image is zoomed in because its width is less than the page width.

image

hossainemruz commented 4 months ago

Sound reasonable. Unfortunately, I am little busy now. So, it may take some time to implement.