o2r-project / o2r-extender

Allows the integration of badges into several research websites and data repositories.
https://doi.org/10.31223/osf.io/xtsqh
Apache License 2.0
1 stars 3 forks source link

Badges not displayed properly [Windows] #5

Open LukasLohoff opened 7 years ago

LukasLohoff commented 7 years ago

image

The shields.io badges are working fine one by one: asdf

LukasLohoff commented 7 years ago

The problem is the the parent div width - increasing that "fixes" the issue. But if there's not enough space, ideally the badges should jump to the next line (which they already do right now) and still be displayed correctly (which they don't)

LukasLohoff commented 7 years ago

Found the problem here:

The badges are in-line SVGs and inherit some attributes from each other. Because of this, all badges inherit the background width from the first badge.

Similar issue: https://github.com/jamesmartin/inline_svg/issues/27

Workarounds:

nuest commented 7 years ago

I'd rather go with flat-squared than with pngs.