fix: Revert extended touch on shopping list (#6794)

This commit is contained in:
Michael Genson
2025-12-29 19:24:03 -06:00
committed by GitHub
parent 8ea9bb19f6
commit bde7cf6f9d

View File

@@ -7,23 +7,18 @@
no-gutters no-gutters
class="flex-nowrap align-center" class="flex-nowrap align-center"
> >
<v-card <v-col :cols="itemLabelCols">
flat <div class="d-flex align-center flex-nowrap">
link
class="grow"
@click="() => {
listItem.checked = !listItem.checked
$emit('checked', listItem)
}"
>
<div class="d-flex align-center flex-nowrap grow">
<v-checkbox <v-checkbox
v-model="listItem.checked" v-model="listItem.checked"
hide-details hide-details
density="compact" density="compact"
class="mt-0 flex-shrink-0" class="mt-0 flex-shrink-0"
color="null" color="null"
@change="$emit('checked', listItem)" @click="() => {
listItem.checked = !listItem.checked
$emit('checked', listItem)
}"
/> />
<div <div
class="ml-2 text-truncate" class="ml-2 text-truncate"
@@ -33,78 +28,84 @@
<RecipeIngredientListItem :ingredient="listItem" /> <RecipeIngredientListItem :ingredient="listItem" />
</div> </div>
</div> </div>
</v-card> </v-col>
<div <v-spacer />
v-if="!listItem.checked" <v-col
style="min-width: 72px" cols="auto"
class="text-right"
> >
<v-menu <div
offset-x v-if="!listItem.checked"
start style="min-width: 72px"
min-width="125px"
> >
<template #activator="{ props }"> <v-menu
<v-tooltip offset-x
v-if="recipeList && recipeList.length" start
open-delay="200" min-width="125px"
transition="slide-x-reverse-transition" >
density="compact" <template #activator="{ props }">
location="end" <v-tooltip
content-class="text-caption" v-if="recipeList && recipeList.length"
> open-delay="200"
<template #activator="{ props: tooltipProps }"> transition="slide-x-reverse-transition"
<v-btn density="compact"
size="small" location="end"
variant="text" content-class="text-caption"
class="ml-2" >
icon <template #activator="{ props: tooltipProps }">
v-bind="tooltipProps" <v-btn
@click="displayRecipeRefs = !displayRecipeRefs" size="small"
> variant="text"
<v-icon> class="ml-2"
{{ $globals.icons.potSteam }} icon
</v-icon> v-bind="tooltipProps"
</v-btn> @click="displayRecipeRefs = !displayRecipeRefs"
</template> >
<span>Toggle Recipes</span> <v-icon>
</v-tooltip> {{ $globals.icons.potSteam }}
<v-btn </v-icon>
size="small" </v-btn>
variant="text" </template>
class="ml-2" <span>Toggle Recipes</span>
icon </v-tooltip>
@click="toggleEdit(true)" <v-btn
> size="small"
<v-icon> variant="text"
{{ $globals.icons.edit }} class="ml-2"
</v-icon> icon
</v-btn> @click="toggleEdit(true)"
<v-btn >
size="small" <v-icon>
variant="text" {{ $globals.icons.edit }}
class="handle" </v-icon>
icon </v-btn>
v-bind="props" <v-btn
> size="small"
<v-icon> variant="text"
{{ $globals.icons.arrowUpDown }} class="handle"
</v-icon> icon
</v-btn> v-bind="props"
</template> >
<v-list density="compact"> <v-icon>
<v-list-item {{ $globals.icons.arrowUpDown }}
v-for="action in contextMenu" </v-icon>
:key="action.event" </v-btn>
density="compact" </template>
@click="contextHandler(action.event)" <v-list density="compact">
> <v-list-item
<v-list-item-title> v-for="action in contextMenu"
{{ action.text }} :key="action.event"
</v-list-item-title> density="compact"
</v-list-item> @click="contextHandler(action.event)"
</v-list> >
</v-menu> <v-list-item-title>
</div> {{ action.text }}
</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</div>
</v-col>
</v-row> </v-row>
<v-row <v-row
v-if="!listItem.checked && recipeList && recipeList.length && displayRecipeRefs" v-if="!listItem.checked && recipeList && recipeList.length && displayRecipeRefs"
@@ -313,8 +314,4 @@ export default defineNuxtComponent({
.strike-through { .strike-through {
text-decoration: line-through !important; text-decoration: line-through !important;
} }
.grow {
flex-grow: 1;
}
</style> </style>