Skip to content

Commit

Permalink
adding a min width to cards + and link to organisim in protein cards
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-salazar committed Feb 5, 2024
1 parent 18339f9 commit e1beaa2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/components/Protein/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,19 @@ const ProteinCard = ({ data, search, entryDB }: Props) => {
<Tooltip
title={`${data.metadata.source_organism.fullName} (Tax ID: ${data.metadata.source_organism.taxId})`}
>
{data.metadata.source_organism.fullName}
<Link
to={{
description: {
main: { key: 'taxonomy' },
taxonomy: {
db: 'uniprot',
accession: data.metadata.source_organism.taxId,
},
},
}}
>
{data.metadata.source_organism.fullName}
</Link>
</Tooltip>
<div>
<HighlightedText
Expand Down
1 change: 1 addition & 0 deletions src/components/SimpleCommonComponents/Card/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
position: relative;
transition: opacity var(--timing-really-fast) ease-out;
&:has(.card-tag) {
min-width: 10rem;
margin-bottom: 0.5rem;
}
}
Expand Down

0 comments on commit e1beaa2

Please sign in to comment.