Cogoport/cogo-toast

Odd issue with SVG icon

MuTLY opened this issue · 2 comments

MuTLY commented

Depending on screen size, the icon shows different sizes.

image

image

I haven't touch the original CSS and I'm having a hard time finding the cause of this.

MuTLY commented

The more text added to the toaster, the smaller the icon. Solution: adding a min-width to the svg CSS rule with the same size of the icon element (18px) fixes this behavior.

E.g. .ct-toast svg { min-width: 18px; }

Fixed in v4.1.3 with #46