moved context menu and re added descripotion to detailed view
This commit is contained in:
parent
faf78fc254
commit
73be817c10
@ -33,14 +33,6 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-img-overlay h-100 d-flex flex-column justify-content-right float-right text-right pt-2 pr-1"
|
|
||||||
v-if="show_context_menu">
|
|
||||||
<a>
|
|
||||||
<recipe-context-menu :recipe="recipe" class="float-right"
|
|
||||||
:disabled_options="context_disabled_options"
|
|
||||||
v-if="recipe !== null"></recipe-context-menu>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="card-img-overlay d-flex flex-column justify-content-left float-left text-left pt-2" style="width:40%"
|
<div class="card-img-overlay d-flex flex-column justify-content-left float-left text-left pt-2" style="width:40%"
|
||||||
v-if="recipe.working_time !== 0 || recipe.waiting_time !== 0">
|
v-if="recipe.working_time !== 0 || recipe.waiting_time !== 0">
|
||||||
<b-badge pill variant="light" class="mt-1 font-weight-normal" v-if="recipe.working_time !== 0">
|
<b-badge pill variant="light" class="mt-1 font-weight-normal" v-if="recipe.working_time !== 0">
|
||||||
@ -56,16 +48,26 @@
|
|||||||
</a>
|
</a>
|
||||||
|
|
||||||
<b-card-body class="p-2 pl-3 pr-3">
|
<b-card-body class="p-2 pl-3 pr-3">
|
||||||
<span>
|
<div class="d-flex flex-row">
|
||||||
|
<div class="flex-grow-1">
|
||||||
<a :href="this.recipe.id !== undefined ? resolveDjangoUrl('view_recipe', this.recipe.id) : null" class="text-body font-weight-bold two-row-text">
|
<a :href="this.recipe.id !== undefined ? resolveDjangoUrl('view_recipe', this.recipe.id) : null" class="text-body font-weight-bold two-row-text">
|
||||||
<template v-if="recipe !== null">{{ recipe.name }}</template>
|
<template v-if="recipe !== null">{{ recipe.name }}</template>
|
||||||
<template v-else>{{ meal_plan.title }}</template>
|
<template v-else>{{ meal_plan.title }}</template>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</div>
|
||||||
|
<div class="justify-content-end">
|
||||||
|
<recipe-context-menu :recipe="recipe" class="justify-content-end float-right align-items-end pr-0"
|
||||||
|
:disabled_options="context_disabled_options"
|
||||||
|
v-if="recipe !== null"></recipe-context-menu>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<b-card-text style="text-overflow: ellipsis">
|
<b-card-text style="text-overflow: ellipsis">
|
||||||
<template v-if="recipe !== null">
|
<template v-if="recipe !== null">
|
||||||
|
<div v-if="show_detail">
|
||||||
|
{{ recipe.description }}
|
||||||
|
</div>
|
||||||
|
|
||||||
<p class="mt-1 mb-1">
|
<p class="mt-1 mb-1">
|
||||||
<last-cooked :recipe="recipe"></last-cooked>
|
<last-cooked :recipe="recipe"></last-cooked>
|
||||||
@ -218,7 +220,7 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
margin: auto;
|
margin: auto;
|
||||||
overflow: hidden;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content .content-overlay {
|
.content .content-overlay {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<div class="dropdown d-print-none">
|
<div class="dropdown d-print-none">
|
||||||
<a class="btn shadow-none" href="javascript:void(0);" role="button" id="dropdownMenuLink"
|
<a class="btn shadow-none pr-0 pl-0" href="javascript:void(0);" role="button" id="dropdownMenuLink"
|
||||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<i class="fas fa-ellipsis-v fa-lg"></i>
|
<i class="fas fa-ellipsis-v fa-lg"></i>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user