cozy / cozy-photos-v3

Cozy Photos app for Cozy Cloud
GNU Affero General Public License v3.0
1 stars 9 forks source link

fix: horizontal scrolling happened because of too large elements #104

Closed GoOz closed 7 years ago

GoOz commented 7 years ago

So .pho-section had a left margin which was kind of harmless at first, but when the AutoSizer plugin appeared, it forced the width of this element to the size of the viewport. Which means viewport's size + margin = larger than the viewport and in that case there's something to scroll horizontally.

So I changed the margin with right & left padding and add a box-sizing: border-box so that even if width is calculated by AutoSizer, it renders accordingly. No more scroll. :)

GoOz commented 7 years ago

Problème de scroll dans l'application Photos sur Mobile