feat: improve BaseDialog on mobile and use it globally (#7076)

Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
Arsène Reymond
2026-03-31 14:34:44 +02:00
committed by GitHub
parent f6305b785e
commit f36c892bb7
12 changed files with 179 additions and 248 deletions

View File

@@ -24,7 +24,7 @@
</v-btn>
<BaseDialog
v-model="showTimeline"
:title="timelineAttrs.title"
:title="$t('recipe.timeline')"
:icon="$globals.icons.timelineText"
width="70%"
>
@@ -53,8 +53,6 @@ const props = withDefaults(defineProps<Props>(), {
recipeName: "",
});
const i18n = useI18n();
const { smAndDown } = useDisplay();
const showTimeline = ref(false);
function toggleTimeline() {
@@ -62,13 +60,7 @@ function toggleTimeline() {
}
const timelineAttrs = computed(() => {
let title = i18n.t("recipe.timeline");
if (smAndDown.value) {
title += ` ${props.recipeName}`;
}
return {
title,
queryFilter: `recipe.slug="${props.slug}"`,
};
});