Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions playground/app/components/recipe/IngredientItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import type {
import { isAndGroup, isSimpleGroup, hasAlternatives } from "cooklang-parser";

type IngredientQuantityEntry =
| IngredientQuantityGroup
| IngredientQuantityAndGroup;
IngredientQuantityGroup | IngredientQuantityAndGroup;

const props = defineProps<{
ingredient: Ingredient;
Expand Down Expand Up @@ -105,8 +104,7 @@ const displayMode = computed<DisplayMode>(() => {
<span
v-if="ingredient.preparation"
class="text-gray-500 dark:text-gray-300"
>
, {{ ingredient.preparation }}
>, {{ ingredient.preparation }}
</span>
</template>

Expand All @@ -130,8 +128,7 @@ const displayMode = computed<DisplayMode>(() => {
<span
v-if="ingredient.preparation"
class="text-gray-500 dark:text-gray-300"
>
, {{ ingredient.preparation }}
>, {{ ingredient.preparation }}
</span>
</template>

Expand Down Expand Up @@ -179,8 +176,7 @@ const displayMode = computed<DisplayMode>(() => {
<span
v-if="ingredient.preparation"
class="text-gray-500 dark:text-gray-300"
>
, {{ ingredient.preparation }}
>, {{ ingredient.preparation }}
</span>
<span class="text-gray-500 dark:text-gray-300">
{{ " " }}(or
Expand Down Expand Up @@ -244,8 +240,7 @@ const displayMode = computed<DisplayMode>(() => {
<span
v-if="ingredient.preparation"
class="text-gray-500 dark:text-gray-300"
>
, {{ ingredient.preparation }}
>, {{ ingredient.preparation }}
</span>
</template>

Expand Down Expand Up @@ -292,8 +287,7 @@ const displayMode = computed<DisplayMode>(() => {
<span
v-if="ingredient.preparation"
class="text-gray-500 dark:text-gray-300"
>
, {{ ingredient.preparation }}
>, {{ ingredient.preparation }}
</span>

<!-- Show alternatives if present -->
Expand Down Expand Up @@ -336,8 +330,7 @@ const displayMode = computed<DisplayMode>(() => {
<span
v-if="ingredient.preparation"
class="text-gray-500 dark:text-gray-300"
>
, {{ ingredient.preparation }}
>, {{ ingredient.preparation }}
</span>
</template>
</li>
Expand Down
Loading