Skip to content

Commit

Permalink
Add className to animal identification cell
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakaOno committed Dec 12, 2024
1 parent 23581ce commit a889d3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type IconTextProps = {
highlightedText: string | number | null | undefined;
photoUrl: string | null;
removed?: boolean;
className?: string;
};

const IconText = ({
Expand All @@ -34,9 +35,10 @@ const IconText = ({
highlightedText,
removed,
photoUrl,
className,
}: IconTextProps) => {
return (
<div className={styles.iconTextContainer}>
<div className={clsx(styles.iconTextContainer, className)}>
{photoUrl && iconName !== 'REMOVED_ANIMAL' ? (
<img src={photoUrl} className={styles.photoUrl} />
) : (
Expand Down
1 change: 1 addition & 0 deletions packages/webapp/src/containers/Animals/Inventory/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ export default function AnimalInventory({
photoUrl={d.photo_url}
subtext={isDesktop ? null : `${d.type} / ${d.breed}`}
highlightedText={d.batch ? d.count : null}
className={view !== View.TASK_SUMMARY ? styles.afterCheckbox : ''}
/>
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,7 @@
width: calc(100% - 20px); // icon width 16px + gap 4px
@include truncateText();
}

.afterCheckbox {
margin-left: -12px;
}

0 comments on commit a889d3d

Please sign in to comment.