fixing shared recipe layout for desktop
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<transition name="fade">
|
<transition name="fade">
|
||||||
<div v-if="recipe" class="recipe-content mx-auto" style="max-width: 900px;">
|
<div v-if="recipe" class="recipe-content">
|
||||||
<v-divider class="mb-10 separator"></v-divider>
|
<v-divider class="mb-10 separator"></v-divider>
|
||||||
|
|
||||||
<h2 class="recipe-title text-center mb-4">{{ recipe.title }}</h2>
|
<h2 class="recipe-title text-center mb-4">{{ recipe.title }}</h2>
|
||||||
@@ -165,6 +165,7 @@ const printRecipe = () => {
|
|||||||
const shareRecipe = async () => {
|
const shareRecipe = async () => {
|
||||||
if (!props.recipe?.id) {
|
if (!props.recipe?.id) {
|
||||||
showSavePrompt.value = true;
|
showSavePrompt.value = true;
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
showSavePrompt.value = false;
|
showSavePrompt.value = false;
|
||||||
}, 8000);
|
}, 8000);
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="recipe-bg min-h-screen pb-12">
|
<div class="recipe-bg min-h-screen pb-12">
|
||||||
<v-container class="py-10">
|
<v-container class="py-10">
|
||||||
<div v-if="normalizedRecipe" class="recipe-card mx-auto" style="max-width: 1000px;">
|
<RecipeDisplay
|
||||||
<RecipeDisplay :recipe="normalizedRecipe" :is-public-view="true" />
|
v-if="normalizedRecipe"
|
||||||
</div>
|
:recipe="normalizedRecipe"
|
||||||
|
:is-public-view="true"
|
||||||
|
class="recipe-card mx-auto"
|
||||||
|
style="max-width: 1000px;"
|
||||||
|
/>
|
||||||
<v-progress-linear v-else indeterminate color="#8c4a32" />
|
<v-progress-linear v-else indeterminate color="#8c4a32" />
|
||||||
</v-container>
|
</v-container>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user