Fixed leaf text size
Change-Id: Ic0e1f90c1bf1311ee719d2cd8d728e4eb7b5787d
diff --git a/dev/js/src/match/relations.js b/dev/js/src/match/relations.js
index 5193635..a201b9f 100644
--- a/dev/js/src/match/relations.js
+++ b/dev/js/src/match/relations.js
@@ -292,6 +292,7 @@
* Create token list
*/
var text = g.appendChild(this._c("text"));
+ text.setAttribute('class', 'leaf');
text.setAttribute("text-anchor", "start");
text.setAttribute("y", height);
diff --git a/dev/scss/main/tree.scss b/dev/scss/main/tree.scss
index eb58b3a..aec5bd4 100644
--- a/dev/scss/main/tree.scss
+++ b/dev/scss/main/tree.scss
@@ -63,7 +63,10 @@
font-size: 9pt;
}
-g.leaf > text > tspan {
- font-size: 10pt;
- overflow: visible;
+g.leaf > text,
+text.leaf {
+ > tspan {
+ font-size: 10pt;
+ overflow: visible;
+ }
}