Skip to content

Commit

Permalink
Change DL button design to not be a button
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig authored and corneliusroemer committed Oct 17, 2024
1 parent 0b05af3 commit 7c19eab
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { SequenceEntryHistoryMenu } from './SequenceEntryHistoryMenu';
import { routes } from '../../routes/routes';
import { type SequenceEntryHistory } from '../../types/lapis';
import IcBaselineDownload from '~icons/ic/baseline-download';
import IwwaArrowDown from '~icons/iwwa/arrow-down';
interface Props {
sequenceEntryHistory?: SequenceEntryHistory;
Expand Down Expand Up @@ -30,28 +31,32 @@ const { sequenceEntryHistory, accessionVersion, showDownload } = Astro.props;
}
{
showDownload && (
<div class='sm:outlineButton inline-block dropdown dropdown-hover dropdown-end'>
<span tabindex='0' class='hidden sm:inline cursor-pointer'>
<div class='inline-block dropdown dropdown-hover dropdown-end'>
<label tabindex='0' class='hidden sm:block py-1 text-primary-700 cursor-pointer'>
Download
</span>
<span class='text-primary'>
{' '}
<IwwaArrowDown className='inline-block -mt-1 ml-1 h-4 w-4' />
</span>
</label>
<span tabindex='0' class='sm:hidden inline text-xl cursor-pointer'>
<IcBaselineDownload />
</span>
<ul class='dropdown-content z-20 menu p-1 shadow bg-base-100 rounded-btn top-full -left-22 w-35'>
<ul class='dropdown-content z-20 menu p-1 shadow bg-base-100 rounded-btn top-full -left-44 sm:-left-24 w-52'>
<li>
<a
href={routes.sequenceEntryFastaPage(accessionVersion, true)}
class='block px-4 py-2 outlineButtonDropdownItem'
>
FASTA
Download FASTA
</a>
</li>
<li>
<a
href={routes.sequenceEntryTsvPage(accessionVersion, true)}
class='block px-4 py-2 outlineButtonDropdownItem'
>
Metadata TSV
Download metadata TSV
</a>
</li>
</ul>
Expand Down

0 comments on commit 7c19eab

Please sign in to comment.