Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix grid structure

Smaug67390142e8a63e48
diff --git a/frontend/app/components/DocumentsGrid.vue b/frontend/app/components/DocumentsGrid.vue
index 04e81bb0..49c9f42b 100644
--- a/frontend/app/components/DocumentsGrid.vue
+++ b/frontend/app/components/DocumentsGrid.vue
@@ -1,9 +1,7 @@
<template>
<div class="document-list">
- <div v-if="documents.length">
- <DocumentCard v-for="document in documents" :key="document.id" :document="document" />
- </div>
- <div v-else style="width: 100%; height: 100%">
+ <DocumentCard v-for="document in documents" :key="document.id" :document="document" />
+ <div v-if="!documents.length" style="width: 100%; height: 100%">
<div style="text-align: center; margin: 10vh auto">
<h1>No documents found</h1>
</div>