Skip to content

Commit eeed216

Browse files
committed
STY: make gap motifs in alignments not transparent
1 parent 46fe12e commit eeed216

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

gui/src/client/src/components/workspace/AlignmentGrid.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,12 @@ function alignedCellSx(name: string | null, columnWidthCh: number, matchColor: s
6060
return {
6161
...ROW_CELL_BASE_SX,
6262
borderColor: isGap ? "divider" : "primary.main",
63-
// A gap cell has no fill of its own, so the row's connecting line (see
64-
// ROW_LINE_SX) shows straight through it -- that's the point, it's what
65-
// marks the cell as empty. Every occupied cell, matched or not, gets an
66-
// opaque fill instead: layering the (semi-transparent) match tint as a
67-
// backgroundImage over an opaque backgroundColor composites down to a
68-
// fully solid color, so the line can never bleed through legible content
69-
// the way a plain alpha-blended fill would.
70-
bgcolor: isGap ? "transparent" : "background.paper",
63+
// Every cell, gap or occupied, gets an opaque background.paper fill so the
64+
// row's connecting line (see ROW_LINE_SX) never shows through and breaks
65+
// the pill's outline. Occupied cells layer the (semi-transparent) match
66+
// tint as a backgroundImage on top, which composites down to a fully
67+
// solid color over the opaque base.
68+
bgcolor: "background.paper",
7169
backgroundImage: !isGap && matchColor ? `linear-gradient(${matchColor}, ${matchColor})` : "none",
7270
width: `${columnWidthCh}ch`,
7371
textAlign: "center" as const,

0 commit comments

Comments
 (0)