Skip to content

Commit 1227164

Browse files
author
martina
committed
fix align labels bug
1 parent 1dd8d72 commit 1227164

4 files changed

Lines changed: 4 additions & 2 deletions

File tree

dist/assets/sqv.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
-webkit-user-select: none;
3939
display:block;
4040
height:1em;
41+
line-height:1em;
4142
margin-bottom: 1.5em;
4243
font-style: italic;
4344
justify-content: flex-end;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sequence-viewer-typescript",
3-
"version": "1.0.41",
3+
"version": "1.0.42",
44
"main": "index.js",
55
"types": "index.d.ts",
66
"scripts": {

src/assets/sqv.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
-webkit-user-select: none;
3939
display:block;
4040
height:1em;
41+
line-height:1em;
4142
margin-bottom: 1.5em;
4243
font-style: italic;
4344
justify-content: flex-end;

src/lib/sequence.viewer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class SequenceViewer {
250250
for (let y = 0; y < data.length; y++) {
251251
entity = data[y][x];
252252
style = 'font-size: 1em;display:block;height:1em;line-height:1em;margin-bottom:' + rowMarginBottom;
253-
if (y === data.length - 1) { style = 'font-size: 1em;'; }
253+
if (y === data.length - 1) { style = 'font-size: 1em;display:block;line-height:1em;margin-bottom:' + rowMarginBottom; }
254254
if (!entity) {
255255
// emptyfiller
256256
cell = `<span style="${style}"> </span>`;

0 commit comments

Comments
 (0)