Skip to content

Commit ddd82ad

Browse files
author
Nick G
committed
css fix - overflow / elipsis etc
css fix - z-indicies incorrect prep for better spreadsheet interactions.
1 parent 0e7e0aa commit ddd82ad

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

src/components/PositionalBarplot.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
.barplot-tooltip-holder{
2727
margin: 0;
28-
z-index: 1002;
28+
z-index: 1800;
2929

3030
.bar-position-textblock {
3131
pointer-events: all;

src/components/SequenceLogo.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
.sequence-logo-tooltip-container {
1818
margin: 0;
19-
z-index: 1002;
19+
z-index: 1800;
2020

2121
.logo-tooltip {
2222
pointer-events: all;

src/components/alignment-metadata/AlignmentSpreadsheet.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,16 @@
8484
display: grid;
8585
align-items: stretch;
8686
> * {
87-
text-overflow: ellipsis;
88-
white-space: nowrap;
89-
overflow: hidden;
9087
border-bottom: 0.5px solid #e0e0e0;
9188
border-bottom: 0.5px solid #e0e0e0;
9289
box-sizing: border-box;
9390
display: grid;
9491
align-items: center;
92+
> * {
93+
overflow: hidden;
94+
white-space: nowrap;
95+
text-overflow: ellipsis;
96+
}
9597
}
9698
}
9799

src/components/alignment-metadata/AlignmentSpreadsheetHook.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Base hook for a spreadsheet to show annotations.
33
*/
44
import "./AlignmentSpreadsheet.scss";
5-
import React, { useCallback, useEffect, useMemo, useState } from "react";
5+
import React, { useCallback, useMemo, useState } from "react";
66

77
import {
88
generateUUIDv4
@@ -42,6 +42,7 @@ export interface IAlignmentSpreadsheetProps {
4242
rowHeight: number;
4343
fontSize: number;
4444
//reorderable: boolean;
45+
//minWidthPxUpdateRequest: (minSizePx: number) => boolean;
4546

4647
columns: {[key: string]: ISpreadsheetColumn};
4748
maxPinnedTableWidth?: number;
@@ -407,10 +408,11 @@ export function AlignmentSpreadsheet(
407408
]);
408409

409410
const pinnedGridTemplateColumns = pinnedTableActualWidth > 0
411+
//? `${pinnedTableActualWidth}px`
410412
? `minmax(100px, ${pinnedTableActualWidth}px)`
411413
: "";
412414
const unpinnedGridTemplateColumns = unpinnedTableActualWidth > 0
413-
? ` minmax(100px, ${unpinnedTableActualWidth}px)`
415+
? `minmax(100px, ${unpinnedTableActualWidth}px)`
414416
: " 0px";
415417
const gridTemplateAreas = `"${pinnedTableActualWidth > 0 ? "pinned-table " : "" }unpinned-table"`;
416418

src/components/alignment-metadata/AlignmentSpreadsheetTableHook.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export function AlignmentSpreadsheetTable(props: IAlignmentSpreadsheetTableProps
202202
return (
203203
<div key={rowIdx}
204204
style={{padding: `0 ${leftRightMarginInTableCells}px`}}>
205-
{data[rowIdx]}
205+
<span>{data[rowIdx]}</span>
206206
</div> )
207207
})
208208
}

src/components/layout/AlignmentViewerLayout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
right: 0;
99
opacity: 0;
1010
background-color: white;
11-
z-index: 1800;
11+
z-index: 1801;
1212
cursor: col-resize;
1313
}
1414
.full-screen-resize-dragger.horizontal{

0 commit comments

Comments
 (0)