Skip to content

Commit 75804e8

Browse files
author
Selcuk
committed
Tree and MSA combined view added. Buttons fixed
1 parent d1d80a4 commit 75804e8

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/CombinedTreeAlignment.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ export function CombinedTreeAlignment({
215215
containerTopPadding = 0,
216216
containerBottomPadding = 0,
217217
alignmentRightPadding = 4,
218+
headerGapPx,
218219
isDarkMode,
219220
receptor,
220221
}: CombinedTreeAlignmentProps) {
@@ -365,8 +366,8 @@ export function CombinedTreeAlignment({
365366
// Fine-tune vertical gaps relative to the header bottom (configurable)
366367
const headerToSeqGapPx = useMemo(() => {
367368
// If headerGapPx provided, use it; otherwise default to ~0.5em of current font size
368-
return Math.max(0, typeof (arguments as unknown as { headerGapPx?: number }).headerGapPx === 'number' ? (arguments as unknown as { headerGapPx?: number }).headerGapPx! : Math.round(fontSize * 0.5));
369-
}, [fontSize]);
369+
return Math.max(0, headerGapPx ?? Math.round(fontSize * 0.5));
370+
}, [headerGapPx, fontSize]);
370371

371372
// Use fixed row spacing - no dynamic calculation based on container
372373
const dynamicRowSpacing = leafRowSpacing;

src/components/SequenceLogoChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { useRef, useEffect, useState, useCallback } from 'react';
44
import { createPortal } from 'react-dom';
55
import * as d3 from 'd3';
66
import useCleanedSequences from '@/hooks/useCleanedSequence';
7-
import { Button } from '@/components/ui/button';
7+
// Removed Button usage in favor of unified styled buttons
88

99
interface Sequence {
1010
header: string;

src/components/SnakePlot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useState, useEffect, useRef, useCallback } from 'react';
44
import { Parser as HtmlToReactParser } from 'html-to-react';
55
import { createPortal } from 'react-dom';
66
import { useSnakePlotTooltip } from '../hooks/useSnakePlotTooltip';
7-
import { Button } from './ui/button';
7+
// Removed Button usage in favor of unified styled buttons
88
import { toast } from 'sonner';
99

1010
interface SnakePlotProps {

0 commit comments

Comments
 (0)