Skip to content

Commit

Permalink
Remove display of image size (#50)
Browse files Browse the repository at this point in the history
- Size calulcations were removed as part of #16
  • Loading branch information
mtalcott committed May 29, 2024
1 parent cda1f8e commit ecf77c1
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions client/src/components/TaskResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function TaskResults(props: TaskResultsProps) {
height={height}
width={width}
itemCount={groupsWithDuplicates.length}
itemSize={291}
itemSize={263}
>
{({ index, style }) => (
<ResultRow
Expand Down Expand Up @@ -214,10 +214,6 @@ function MediaItemCard({
field="dimensions"
{...{ mediaItem, isOriginal, originalMediaItem }}
/>
<MediaItemCardField
field="size"
{...{ mediaItem, isOriginal, originalMediaItem }}
/>
{mediaItem.error && (
<MediaItemCardField
field="error"
Expand Down Expand Up @@ -298,15 +294,6 @@ function MediaItemCardField({
color = "success.main";
text = "Same filename";
}
} else if (field === "size") {
IconComponent = SaveIcon;
if (isOriginal || mediaItem.size !== originalMediaItem.size) {
text = mediaItem.size;
} else {
color = "success.main";
text = "Same size";
tooltip = mediaItem.size;
}
} else if (field === "dimensions") {
IconComponent = AspectRatioIcon;
tooltip = mediaItem.dimensions;
Expand Down

0 comments on commit ecf77c1

Please sign in to comment.