Skip to content

Commit

Permalink
fix matrix font-size (firefox)
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-donarise committed Mar 26, 2024
1 parent 20c592a commit f3f1a20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/app.view.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ namespace $.$$ {
direction: 'column',
},
height: '100%',
background: {
color: 'white',
},
},

Start_page: {
Expand Down
2 changes: 1 addition & 1 deletion plot/matrix/matrix.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit f3f1a20

Please sign in to comment.