From 4f1cd172f65dd856e2334b1fac311d331b76a1da Mon Sep 17 00:00:00 2001 From: Jingcheng Yang Date: Tue, 26 Mar 2024 20:47:47 -0400 Subject: [PATCH] Improve the showing of the msa viewer. --- .../NodeInfoPanel/AlignmentViewer/index.tsx | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/studio/src/NodeInfoPanel/AlignmentViewer/index.tsx b/studio/src/NodeInfoPanel/AlignmentViewer/index.tsx index d748a99..c7c48ff 100644 --- a/studio/src/NodeInfoPanel/AlignmentViewer/index.tsx +++ b/studio/src/NodeInfoPanel/AlignmentViewer/index.tsx @@ -5,6 +5,9 @@ import { AlignmentViewer as ReactAlignmentViewer } from 'react-alignment-viewer' import type { AlignmentData } from '../index.t'; import biomsa from 'biomsa'; import { expectedSpeciesOrder } from '@/components/util'; +import { Select } from 'antd'; + +const { Option } = Select; import './index.less'; @@ -71,6 +74,7 @@ const AlignmentViewer: React.FC = (props) => { const [dataset, setDataset] = React.useState(""); const [errorMsg, setErrorMsg] = React.useState("No data"); const [loading, setLoading] = React.useState(false); + const [tileHeight, setTileHeight] = React.useState('20'); useEffect(() => { if (props.data && props.data.length > 0) { @@ -113,7 +117,21 @@ const AlignmentViewer: React.FC = (props) => { : - + <> + + If you see the alignment is not properly displayed, you can adjust the tile height: + + + + } }