Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:databio/bedhost into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Nov 27, 2024
2 parents f80e2a8 + babb5e1 commit 876ce2d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 25 deletions.
50 changes: 26 additions & 24 deletions ui/src/components/modals/create-bedset-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,38 +82,40 @@ export const CreateBedSetModal = (props: Props) => {
></button>
<div className="w-100 text-sm">
<h1 className="fs-5 mb-1 fw-semibold d-inline">Create BEDset</h1>

<div className="border-bottom my-3" style={{ margin: '0 -1.13em' }}></div>

<Markdown className="" rehypePlugins={[rehypeHighlight]}>
{generateBEDsetCreationDescription()}
</Markdown>
</div>
</Modal.Header>

<Modal.Body>
<div className="position-relative pt-2 px-3" style={{ margin: '-1em' }}>
<Markdown rehypePlugins={[rehypeHighlight]}>{generateBEDsetPEPMd(cart)}</Markdown>
<div className="w-100 text-sm">
<Markdown rehypePlugins={[rehypeHighlight]}>
{generateBEDsetCreationDescription()}
</Markdown>
</div>
<div className="position-absolute top-0 end-0 m-3">
<button
className="btn btn-sm btn-primary mt-2 me-2"
onClick={() => {
copyToClipboard(generateBEDsetPEPDownloadRaw(cart));
setCopied(true);
setTimeout(() => setCopied(false), 2000);
}}
>
<i className="bi bi-clipboard me-2"></i>
{copied ? 'Copied!' : 'Copy'}
</button>

<div className="position-relative my-1 px-3" style={{ margin: '-1em' }}>
<Markdown className='rounded rounded-2 bg-body-secondary markdown-bg' rehypePlugins={[rehypeHighlight]}>{generateBEDsetPEPMd(cart)}</Markdown>
<div className="position-absolute top-0 end-0 m-3">
<button
className="btn btn-sm btn-primary me-3"
onClick={() => {
copyToClipboard(generateBEDsetPEPDownloadRaw(cart));
setCopied(true);
setTimeout(() => setCopied(false), 2000);
}}
>
<i className="bi bi-clipboard me-2"></i>
{copied ? 'Copied!' : 'Copy'}
</button>
</div>
</div>
<div className="border-top pt-4 ">
<div className="fw-bold text-lg ">

<div className="border-bottom my-3" style={{ margin: '0 -1em' }}></div>

<div className="">
<span className="fw-semibold text-lg">
Submit PEP
</div>
<div className="d-flex align-items-center mt-3">
</span>
<div className="d-flex align-items-center mt-1">
<input type="text" className="form-control me-2" placeholder="Provide a PEPhub registry path."
value={inputValue}
onChange={handleInputRegistryPathChange} />
Expand Down
6 changes: 6 additions & 0 deletions ui/src/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,9 @@ td {
padding-left: 1rem !important;
padding-right: 1rem !important;
}

.markdown-bg code {
border-radius: 1rem !important;
color: #212529;
background: #e9ecef;
}
2 changes: 1 addition & 1 deletion ui/src/pages/bed-cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const BedCart = () => {
}

return (
<Layout title="BEDbase | Cart">
<Layout footer title="BEDbase | Cart">
<div className="p-2">
<div className="d-flex flex-row align-items-start justify-content-between">
<div className="d-flex flex-column">
Expand Down

0 comments on commit 876ce2d

Please sign in to comment.