Skip to content

Commit

Permalink
Made viewport larger for this demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ansengarvin committed Mar 4, 2024
1 parent e0f48b2 commit dd235d6
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions frontend/src/routes/Compare.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,22 @@
<div id="description">
{proteinA} and {proteinB}
</div>
</div>
<div id="right-side" class="flex flex-col">
<EntryCard title="Provided Information">
<ProteinVis
format="pdb"
proteinName={combined}
width={400}
height={350}
on:mount={async ({ detail: { screenshot } }) => {
// upload the protein thumbnail if it doesn't exist
if (entry !== null && entry.thumbnail === null) {
const b64 = await screenshot();
const res = await Backend.uploadProteinPng({
proteinName: entry.name,
base64Encoding: b64,
});
}
}}
/>
<div id="info-grid" class="grid grid-cols-2 mt-5">
<b>Protein 1</b>
<div>
{proteinA}
</div>
<b>Protein 2</b>
<div>{proteinB}</div>
</div>
</EntryCard>
<ProteinVis
format="pdb"
proteinName={combined}
width={750}
height={500}
on:mount={async ({ detail: { screenshot } }) => {
// upload the protein thumbnail if it doesn't exist
if (entry !== null && entry.thumbnail === null) {
const b64 = await screenshot();
const res = await Backend.uploadProteinPng({
proteinName: entry.name,
base64Encoding: b64,
});
}
}}
/>
</div>
{:else if !error}
<!-- Otherwise, tell user we tell the user we are loading -->
Expand Down

0 comments on commit dd235d6

Please sign in to comment.