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

Smaug6739acb4860c5086
diff --git a/frontend/App.vue b/frontend/App.vue
index e34d6748..8e6cc908 100644
--- a/frontend/App.vue
+++ b/frontend/App.vue
@@ -1,6 +1,7 @@
<template>
<div id="app">
- <NuxtPage style="overflow:auto;padding-top: 50px;" id="app-scroll" />
+ <Navbar style="height: 60px" />
+ <NuxtPage style="overflow:auto;padding-top: 20px;" id="app-scroll" />
<div id="backdrop"></div>
<Notification />
<ClientOnly>
diff --git a/frontend/components/MarkdownEditor/LazyToolbar.vue b/frontend/components/MarkdownEditor/LazyToolbar.vue
index 9fc1122f..f6181af9 100644
--- a/frontend/components/MarkdownEditor/LazyToolbar.vue
+++ b/frontend/components/MarkdownEditor/LazyToolbar.vue
@@ -25,7 +25,7 @@
</template>
<script setup lang="ts">
-import { useCategoriesStore, useDocumentsStore, type Document, type Category } from "~/store";
+import { useCategoriesStore, useDocumentsStore, type Document } from "~/store";
const categoriesStore = useCategoriesStore();
const documentsStore = useDocumentsStore();
diff --git a/frontend/components/Navbar.vue b/frontend/components/Navbar.vue
new file mode 100644
index 00000000..670e3f33
--- /dev/null
+++ b/frontend/components/Navbar.vue
@@ -0,0 +1,38 @@
+<template>
+ <header>
+ <span>
+ <svg v-if="hasSidebar" @click="toggleSidebar" class="open-sidebar" xmlns="http://www.w3.org/2000/svg" height="24"
+ viewBox="0 -960 960 960" width="24">
+ <path d="M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z" />
+ </svg>
+ </span>
+ <ThemeToggle />
+ </header>
+</template>
+
+<style lang="scss" scoped>
+header {
+ width: 100%;
+ height: 100%;
+ display: flex;
+ justify-content: space-between;
+ padding: 15px;
+}
+
+.open-sidebar {
+ width: 30px;
+ height: 30px;
+ fill: var(--font-color);
+ cursor: pointer;
+}
+
+// Mobile styles
+@media screen and (max-width: 719px) {
+ .no-mobile {
+ display: none;
+ }
+}
+</style>
+<script lang="ts" setup>
+const { toggleSidebar, hasSidebar } = useSidebar();
+</script>
\ No newline at end of file
diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue
index f6606514..34d824ef 100644
--- a/frontend/pages/index.vue
+++ b/frontend/pages/index.vue
@@ -115,4 +115,8 @@ main {
height: 350px;
}
}
+
+footer {
+ padding: 1rem;
+}
</style>