Skip to content

Commit

Permalink
chore: fix shopping-list-card-view clickability
Browse files Browse the repository at this point in the history
ensure all parts as clickable when mobile and mini
  • Loading branch information
BobyMCbobs committed Aug 2, 2024
1 parent 89ecbd8 commit 8061e05
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions web/src/components/authenticated/shopping-list-card-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@

<template>
<div>
<section>
<section
@click="
(mini === true && deviceIsMobile) && $router.push({
name: 'View shopping list',
params: { id: list.id },
})
"
>
<div class="card pointer-cursor-on-hover">
<div class="card-content">
<div class="media">
Expand Down Expand Up @@ -92,9 +99,7 @@
</div>
<br />
<span v-if="list.notes !== '' && typeof list.notes !== 'undefined'">
<i>
{{ PreviewNotes(list.notes) }}
</i>
<i> {{ PreviewNotes(list.notes) }} </i>
<br />
<br />
</span>
Expand Down Expand Up @@ -149,9 +154,9 @@ export default {
Dialog.confirm({
title: 'Delete shopping list',
message:
'Are you sure that you wish to delete this shopping list?' +
'<br/>' +
'This action cannot be undone.',
'Are you sure that you wish to delete this shopping list?' +
'<br/>' +
'This action cannot be undone.',
confirmText: 'Delete shopping list',
type: 'is-danger',
hasIcon: true,
Expand All @@ -172,8 +177,8 @@ export default {
this.deleteLoading = false
common.DisplayFailureToast(
'Failed to delete the shopping list' +
'<br/>' +
err.response.data.metadata.response
'<br/>' +
err.response.data.metadata.response
)
})
}
Expand All @@ -188,11 +193,11 @@ export default {
</script>

<style>
.display-items-on-the-same-line {
display: flex;
}
.display-items-on-the-same-line {
display: flex;
}

.display-items-on-the-same-line div {
margin-left: 10px;
}
.display-items-on-the-same-line div {
margin-left: 10px;
}
</style>

0 comments on commit 8061e05

Please sign in to comment.