mesg-foundation/docs

Different alignment between local dev and published version

Closed this issue · 5 comments

I don't have the same alignment on the homepage from the local dev version and the one publish on docs.mesg.com

I think the local version is the correct

local:
Screen Shot 2020-02-12 at 15 29 54

published:
Screen Shot 2020-02-12 at 15 29 45

that's not only on the homepage:
local:
Screen Shot 2020-02-12 at 15 31 28

published:
Screen Shot 2020-02-12 at 15 31 34

can't reproduce, can you make sure you have the latest version and your packages are up to date. Remove your node_modules and run npm install again and this should work.

I deleted node_module and reinstalled and my local version has the correct alignment.
Maybe it's netlify that keep in cache some stuff and break the alignment?

the issue appears when the website is built with npm run build, not with npm run dev.

it seems to come from this css property:

p {
margin: .4em 1em;
}

maybe the <style scopped> doesn't work properly when built?

nice catch, I just pushed a fix