Skip to content

Commit

Permalink
fix: wrap count labels in capture matching (Greenstand#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
tranquanghuy0801 authored Jan 25, 2022
1 parent 0d98af1 commit 1dfd366
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/CaptureMatching/CaptureHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function CaptureHeader(props) {
alignItems="baseline"
>
<CurrentCaptureNumber
text={`Unmatched Capture${imgCount !== 1 && 's'}`}
text={`Unmatched Capture${imgCount !== 1 && 's' || ''}`}
cameraImg={iconImgLogo}
imgCount={imgCount}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/CaptureMatching/CaptureMatchingView.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function CaptureMatchingView() {
<Box style={{ width: '50%' }}>
<Box className={classes.candidateIconBox}>
<CurrentCaptureNumber
text={`Candidate Match${treesCount !== 1 && 'es'}`}
text={`Candidate Match${treesCount !== 1 && 'es' || ''}`}
treeIcon={treeIcon}
treesCount={treesCount}
/>
Expand Down
6 changes: 3 additions & 3 deletions src/components/CaptureMatching/CurrentCaptureNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import { Paper, Typography, Box } from '@material-ui/core';
function CurrentCaptureNumber(props) {
return (
<Box>
<Paper elevation={2} style={{ width: '160px' }}>
<Paper elevation={2} style={{ width: '200px' }}>
<Box p={1} style={{ display: 'flex' }}>
<Box style={{ color: '#666', padding: '5px' }}>
<Box style={{ color: '#666', padding: '3px' }}>
{props.cameraImg}
{props.treeIcon}
</Box>
<Typography
variant="h3"
width="65%"
style={{ fontSize: '14px', padding: '4px' }}
style={{ fontSize: '14px', padding: '6px' }}
>
{props.imgCount} {props.treesCount}
<span
Expand Down

0 comments on commit 1dfd366

Please sign in to comment.