serenader2014 / decent

A Ghost blog theme
52 stars 8 forks source link

Gallery border does not fit #11

Closed jwillmer closed 8 years ago

jwillmer commented 8 years ago

I have encountered a problem with the borders of the gallery. Sometimes (tested with around 880px width) the border does not allign with the image. I think the js that modifies the shadow does not work every time. I compared the css of a case there it fitted and a case the it did not and there is no difference. Disabling and enabling the shadow property resolves the issue.

Maybe it is a rendering problem of chrome but could you look over your js, maybe you can change how the resizing is made - via wrapper class?

image

I tested it with different browsers and some have the same problem: https://www.browserstack.com/screenshots/eef6a6439abb3e70d34a20fda268e2b950685654

serenader2014 commented 8 years ago

That's wired. I've seen this issue couple times. I'm not using JS to apply the shadow, css instead. So maybe this is chrome's issue.

I've improved the style in this part, hope that will fix the problem.