Skip to content

Commit

Permalink
Merge pull request #22 from mpds-io/fix-matrix-font-size-firefox
Browse files Browse the repository at this point in the history
fix matrix font-size (firefox)
  • Loading branch information
blokhin authored Mar 26, 2024
2 parents 20c592a + f3f1a20 commit 918381c
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 918381c

Please sign in to comment.