2023-02-19 18:37:18 -06:00
|
|
|
<template>
|
2025-06-20 00:09:12 +07:00
|
|
|
<div class="print-container">
|
|
|
|
<RecipePrintView
|
|
|
|
:recipe="recipe"
|
|
|
|
:scale="scale"
|
|
|
|
:density="'compact'"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-02-19 18:37:18 -06:00
|
|
|
</template>
|
|
|
|
|
2025-07-30 20:37:02 +02:00
|
|
|
<script setup lang="ts">
|
2023-02-19 18:37:18 -06:00
|
|
|
import RecipePrintView from "~/components/Domain/Recipe/RecipePrintView.vue";
|
2025-06-20 00:09:12 +07:00
|
|
|
import type { Recipe } from "~/lib/api/types/recipe";
|
2023-02-19 18:37:18 -06:00
|
|
|
|
2025-07-30 20:37:02 +02:00
|
|
|
interface Props {
|
|
|
|
recipe: Recipe;
|
|
|
|
scale?: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
withDefaults(defineProps<Props>(), {
|
|
|
|
scale: 1,
|
2023-02-19 18:37:18 -06:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
@media print {
|
|
|
|
body,
|
|
|
|
html {
|
|
|
|
margin-top: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.print-container {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.v-main {
|
|
|
|
display: block;
|
2025-07-10 12:12:41 -05:00
|
|
|
padding: 0 !important;
|
|
|
|
margin: 0 !important;
|
2023-02-19 18:37:18 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.v-main__wrap {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.print-container {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
</style>
|