diff --git a/src/main/java/com/example/demo/entity/Recipe.java b/src/main/java/com/example/demo/entity/Recipe.java index b1c1bd0..2c246bb 100644 --- a/src/main/java/com/example/demo/entity/Recipe.java +++ b/src/main/java/com/example/demo/entity/Recipe.java @@ -1,4 +1,4 @@ -ackage com.example.demo.entity; +package com.example.demo.entity; import jakarta.persistence.*; import java.util.List; diff --git a/src/main/resources/static/css/explore.css b/src/main/resources/static/css/explore.css index c9e1898..0ea3246 100644 --- a/src/main/resources/static/css/explore.css +++ b/src/main/resources/static/css/explore.css @@ -186,7 +186,7 @@ body, html { .sidebar-right { display: flex; flex-direction: column; - justify-content: space-between; + justify-content: flex-start; align-items: center; margin: 25px; padding: 5px; diff --git a/src/main/resources/templates/explore.html b/src/main/resources/templates/explore.html index 04d5528..97f1db0 100644 --- a/src/main/resources/templates/explore.html +++ b/src/main/resources/templates/explore.html @@ -4,7 +4,7 @@ -
Cost
@@ -235,6 +235,12 @@ window.location.href = '/explore?' + out.toString(); } })(); + + // For cost display + document.querySelectorAll('.card-cost').forEach(el => { + const num = parseInt(el.textContent); + el.textContent = num === 0 ? '' : '$'.repeat(num); +});