Skip to content

Commit

Permalink
queue item
Browse files Browse the repository at this point in the history
  • Loading branch information
allen-liaoo committed May 3, 2024
1 parent 26cd9ee commit f77ef0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/QueueItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export default function QueueItem({ recipeId, deleteItem }) {
{/* TODO: Get the Card.Text overflow to look better or hide the overflow */}
<div className={styles.cardTextContainer}>
<Card.Text className={styles.cardText}>{recipe.name}</Card.Text>
<Card.Text className={styles.cardText}>Info</Card.Text>
<Card.Text className={styles.cardText}>
{ recipe.instructions ? recipe.instructions.substring(25)
+ (recipe.instructions.length > 25 ? '...' : '') : ""}
</Card.Text>
</div>
<div className={styles.iconContainer+ " " +styles.deleteButton}
onClick={(e) => {
Expand Down

0 comments on commit f77ef0c

Please sign in to comment.