1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Align node labels on FF

FF doesn't seems to use alignment-baseline CSS class in the same
way Chrome does. Switched to domintant-baseline.
This commit is contained in:
Nick O'Leary 2020-06-18 10:11:22 +01:00
parent c9e54f2ba9
commit 0c90376752
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -37,7 +37,7 @@
@include disable-selection; @include disable-selection;
.red-ui-flow-node-label-text { .red-ui-flow-node-label-text {
alignment-baseline: middle; dominant-baseline: middle;
} }
&.red-ui-flow-node-label-right .red-ui-flow-node-label-text { &.red-ui-flow-node-label-right .red-ui-flow-node-label-text {
@ -49,7 +49,7 @@
stroke-width: 0; stroke-width: 0;
fill: $secondary-text-color; fill: $secondary-text-color;
font-size: 16px; font-size: 16px;
alignment-baseline: middle; dominant-baseline: middle;
text-anchor: middle; text-anchor: middle;
pointer-events: none; pointer-events: none;
-webkit-touch-callout: none; -webkit-touch-callout: none;