fix: fixed footer

This commit is contained in:
Shariq Ansari 2024-02-05 19:07:02 +05:30
parent c9439d1182
commit 4162d0d374

View File

@ -19,9 +19,10 @@
defaultViewName: 'Notes View', defaultViewName: 'Notes View',
}" }"
/> />
<div class="flex-1 overflow-y-auto">
<div <div
v-if="notes.data?.data?.length" v-if="notes.data?.data?.length"
class="grid grid-cols-4 gap-4 overflow-y-auto px-5 pb-3" class="grid grid-cols-4 gap-4 px-5 pb-3"
> >
<div <div
v-for="note in notes.data.data" v-for="note in notes.data.data"
@ -71,6 +72,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
<ListFooter <ListFooter
v-if="notes.data?.data?.length" v-if="notes.data?.data?.length"
class="border-t px-5 py-2" class="border-t px-5 py-2"
@ -160,6 +162,6 @@ async function deleteNote(name) {
doctype: 'CRM Note', doctype: 'CRM Note',
name, name,
}) })
notes.reload() notes.value.reload()
} }
</script> </script>