From f3f1a20ddc9718c6296fe7fde16efa6372f5ba1e Mon Sep 17 00:00:00 2001 From: "stan.donarise" Date: Wed, 27 Mar 2024 04:25:57 +1100 Subject: [PATCH] fix matrix font-size (firefox) --- app/app.view.css.ts | 3 +++ plot/matrix/matrix.view.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/app.view.css.ts b/app/app.view.css.ts index aae3669..2f1fdf1 100644 --- a/app/app.view.css.ts +++ b/app/app.view.css.ts @@ -9,6 +9,9 @@ namespace $.$$ { direction: 'column', }, height: '100%', + background: { + color: 'white', + }, }, Start_page: { diff --git a/plot/matrix/matrix.view.ts b/plot/matrix/matrix.view.ts index 55a7637..e32a9a0 100644 --- a/plot/matrix/matrix.view.ts +++ b/plot/matrix/matrix.view.ts @@ -281,7 +281,7 @@ namespace $.$$ { svg.attr('width', this.size() + this.axis_width()) .attr('height', this.size() + this.axis_width()) // .style('font-size', this.range().bandwidth()) // for new d3 version - .style('font-size', this.range().rangeBand()) + .style('font-size', this.range().rangeBand() + 'px') .style('letter-spacing', '1px') const group = svg[ svg.select('g').empty() ? 'append' : 'select' ]('g')