fix extra pixels under icons in buttons

Since the img is in a span, it was treated as text and added 4 pixels
on the bottom for the descender height.

By using `display: block;` it won't be treated as text.

Fixes pybricks/pybricks-code#268
This commit is contained in:
David Lechner
2021-01-25 10:39:11 -06:00
parent 966b10daa6
commit 0acaaf0f55
+4
View File
@@ -48,6 +48,10 @@ body {
user-select: none;
}
.#{$ns}-button-text > img {
display: block;
}
.#{$ns}-form-group > .#{$ns}-label {
font-weight: bolder;
}