1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

Feature: More Shopping List Improvements (#2164)

* added color back to labels

* improved mobile view
refactored layout to use grid
allowed text wrapping on item labels
removed label overflow
added completion date on checked items

* sort checked items by last updated

* made checking an item off more responsive

* optimized moving checked items
removed unnecessary updateAll call
removed jitter when shopping list refreshes
This commit is contained in:
Michael Genson 2023-02-26 13:12:53 -06:00 committed by GitHub
parent 2e6ad5da8e
commit 8ca0fe42de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 85 additions and 50 deletions

View file

@ -2,7 +2,7 @@
<div class="d-flex justify-space-between align-center mx-2">
<div class="handle">
<span class="mr-2">
<v-icon>
<v-icon :color="labelColor">
{{ $globals.icons.tags }}
</v-icon>
</span>
@ -28,7 +28,7 @@
</template>
<script lang="ts">
import { defineComponent, useContext } from "@nuxtjs/composition-api";
import { defineComponent, ref, useContext } from "@nuxtjs/composition-api";
import { ShoppingListMultiPurposeLabelOut } from "~/lib/api/types/group";
interface actions {
@ -42,9 +42,15 @@ export default defineComponent({
type: Object as () => ShoppingListMultiPurposeLabelOut,
required: true,
},
useColor: {
type: Boolean,
default: false,
}
},
setup(props, context) {
const { i18n } = useContext();
const labelColor = ref<string | undefined>(props.useColor ? props.value.label.color : undefined);
const contextMenu: actions[] = [
{
text: i18n.t("general.transfer") as string,
@ -59,6 +65,7 @@ export default defineComponent({
return {
contextHandler,
contextMenu,
labelColor,
};
},
});