mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-23 15:19:41 +02:00
fix: mealplanner day title card height & alignment (#5561)
This commit is contained in:
parent
93cec24f26
commit
b77ff9c341
1 changed files with 54 additions and 68 deletions
|
@ -4,14 +4,14 @@
|
||||||
<v-col v-for="(day, index) in plan" :key="index" cols="12" sm="12" md="4" lg="4" xl="2"
|
<v-col v-for="(day, index) in plan" :key="index" cols="12" sm="12" md="4" lg="4" xl="2"
|
||||||
class="col-borders my-1 d-flex flex-column">
|
class="col-borders my-1 d-flex flex-column">
|
||||||
<v-card class="mb-2 border-left-primary rounded-sm px-2">
|
<v-card class="mb-2 border-left-primary rounded-sm px-2">
|
||||||
<v-container class="px-0">
|
<v-container class="px-0 d-flex align-center" height="56px">
|
||||||
<v-row no-gutters style="width: 100%;">
|
<v-row no-gutters style="width: 100%;">
|
||||||
<v-col cols="10">
|
<v-col cols="10" class="d-flex align-center">
|
||||||
<p class="pl-2 my-1">
|
<p class="pl-2 my-1">
|
||||||
{{ $d(day.date, "short") }}
|
{{ $d(day.date, "short") }}
|
||||||
</p>
|
</p>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="d-flex justify-top" cols="2">
|
<v-col class="d-flex align-center" cols="2">
|
||||||
<GroupMealPlanDayContextMenu v-if="day.recipes.length" :recipes="day.recipes" />
|
<GroupMealPlanDayContextMenu v-if="day.recipes.length" :recipes="day.recipes" />
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
@ -38,25 +38,17 @@
|
||||||
</v-container>
|
</v-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts" setup>
|
||||||
import type { MealsByDate } from "./types";
|
import type { MealsByDate } from "./types";
|
||||||
import type { ReadPlanEntry } from "~/lib/api/types/meal-plan";
|
import type { ReadPlanEntry } from "~/lib/api/types/meal-plan";
|
||||||
import GroupMealPlanDayContextMenu from "~/components/Domain/Household/GroupMealPlanDayContextMenu.vue";
|
import GroupMealPlanDayContextMenu from "~/components/Domain/Household/GroupMealPlanDayContextMenu.vue";
|
||||||
import RecipeCardMobile from "~/components/Domain/Recipe/RecipeCardMobile.vue";
|
import RecipeCardMobile from "~/components/Domain/Recipe/RecipeCardMobile.vue";
|
||||||
import type { RecipeSummary } from "~/lib/api/types/recipe";
|
import type { RecipeSummary } from "~/lib/api/types/recipe";
|
||||||
|
|
||||||
export default defineNuxtComponent({
|
const props = defineProps<{
|
||||||
components: {
|
mealplans: MealsByDate[];
|
||||||
GroupMealPlanDayContextMenu,
|
}>();
|
||||||
RecipeCardMobile,
|
|
||||||
},
|
|
||||||
props: {
|
|
||||||
mealplans: {
|
|
||||||
type: Array as () => MealsByDate[],
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
setup(props) {
|
|
||||||
type DaySection = {
|
type DaySection = {
|
||||||
title: string;
|
title: string;
|
||||||
meals: ReadPlanEntry[];
|
meals: ReadPlanEntry[];
|
||||||
|
@ -110,10 +102,4 @@ export default defineNuxtComponent({
|
||||||
return acc;
|
return acc;
|
||||||
}, [] as Days[]);
|
}, [] as Days[]);
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
|
||||||
plan,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue