Skip to content

Commit

Permalink
results modal updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rmdocherty committed Jul 25, 2024
1 parent 71d6626 commit e83c5b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ const Result = () => {

const copyBtn = () => { navigator.clipboard.writeText(copyText) }

const longestSide = Math.max(imageInfo?.width!, imageInfo?.height!)
const nMore = Math.pow((Math.ceil(l! / longestSide)), 2) - 1

return (
<>
<Accordion defaultActiveKey={['0']} flush alwaysOpen>
Expand All @@ -245,7 +248,7 @@ const Result = () => {
<Accordion.Header ref={lResultRef}>Required Length for Target</Accordion.Header>
{/*Need to manually overwrite the style here because of werid bug*/}
<Accordion.Body style={{ visibility: "visible" }}>
For a {errVF.toFixed(2)}% uncertainty in phase fraction, you <b>need to measure an image size of about {sizeText}</b> at the same resolution.
For a {errVF.toFixed(2)}% uncertainty in phase fraction, you <b>need to measure a total image size of about {sizeText} (i.e. {nMore} more images)</b> at the same resolution.
</Accordion.Body>
</Accordion.Item>
</Accordion >
Expand Down

0 comments on commit e83c5b5

Please sign in to comment.