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

Smaug673973071f074447
diff --git a/frontend/App.vue b/frontend/App.vue
index 62b2c7e8..6d2247b9 100644
--- a/frontend/App.vue
+++ b/frontend/App.vue
@@ -1,6 +1,5 @@
<template>
<div id="app">
- <Navbar style="height: 60px" />
<NuxtPage style="overflow:auto;" id="app-scroll" />
<div id="backdrop"></div>
<Notification />
diff --git a/frontend/components/MediumView.vue b/frontend/components/MediumView.vue
index 4dfd0e04..f7377b33 100644
--- a/frontend/components/MediumView.vue
+++ b/frontend/components/MediumView.vue
@@ -16,7 +16,7 @@ const transition = computed(() => isResizing.value ? 'none' : 'margin-left 0.3s'
.medium-view {
padding: 0 2rem;
width: 100%;
- height: 100%;
+ height: 60px;
}
@media print {
@@ -25,4 +25,10 @@ const transition = computed(() => isResizing.value ? 'none' : 'margin-left 0.3s'
margin: 0 !important;
}
}
+
+@media screen and (max-width: 719px) {
+ .medium-view {
+ padding: 0 0.5rem;
+ }
+}
</style>
\ No newline at end of file
diff --git a/frontend/components/Navbar.vue b/frontend/components/Navbar.vue
index 670e3f33..0b43f7dd 100644
--- a/frontend/components/Navbar.vue
+++ b/frontend/components/Navbar.vue
@@ -1,29 +1,50 @@
<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>
+ <div class="container">
+ <button v-if="!isOpened" @click="toggleSidebar" class="open-sidebar">
+ <svg 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>
+ </button>
+ <!--<button @click="previous" class="no-mobile">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
+ <path d="M400-80 0-480l400-400 71 71-329 329 329 329-71 71Z" />
+ </svg>
+ </button>
+ <button @click="next" class="no-mobile">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
+ <path d="m321-80-71-71 329-329-329-329 71-71 400 400L321-80Z" />
+ </svg>
+ </button>-->
+ </div>
<ThemeToggle />
</header>
</template>
<style lang="scss" scoped>
header {
+ height: 60px;
width: 100%;
- height: 100%;
display: flex;
justify-content: space-between;
- padding: 15px;
}
-.open-sidebar {
- width: 30px;
- height: 30px;
+.container {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 10px 0;
+}
+
+svg {
fill: var(--font-color);
- cursor: pointer;
+ height: 25px;
+ width: 25px;
+}
+
+button {
+ padding: 5px 0;
+ margin: 0
}
// Mobile styles
@@ -34,5 +55,8 @@ header {
}
</style>
<script lang="ts" setup>
-const { toggleSidebar, hasSidebar } = useSidebar();
+const { toggleSidebar, isOpened } = useSidebar();
+const router = useRouter();
+//const next = () => router.go(1);
+//const previous = () => router.go(-1);
</script>
\ No newline at end of file
diff --git a/frontend/components/ThemeToggle.vue b/frontend/components/ThemeToggle.vue
index a31146cb..a0daed5f 100644
--- a/frontend/components/ThemeToggle.vue
+++ b/frontend/components/ThemeToggle.vue
@@ -19,7 +19,6 @@
stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
</g>
</svg>
-
</button>
</template>
@@ -33,12 +32,4 @@ svg {
width: 25px;
height: 25px;
}
-
-button {
- background: none;
- border: none;
- cursor: pointer;
- padding: 0;
- margin: 0;
-}
</style>
\ No newline at end of file
diff --git a/frontend/components/sidebar/helpers.ts b/frontend/components/sidebar/helpers.ts
index 008eeee9..0b5d6ef5 100644
--- a/frontend/components/sidebar/helpers.ts
+++ b/frontend/components/sidebar/helpers.ts
@@ -56,7 +56,7 @@ export const icons = {
'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--yellow);" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640H447l-80-80H160v480l96-320h684L837-217q-8 26-29.5 41.5T760-160H160Zm84-80h516l72-240H316l-72 240Zm0 0 72-240-72 240Zm-84-400v-80 80Z"/></svg>',
file: '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--pink);" d="M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></svg>',
file_parent:
- '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--green);" d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h240v-560H200v560Zm320 0h240v-280H520v280Zm0-360h240v-200H520v200Z"/></svg>',
+ '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--green)" d="M320-320h200v-200H320v200Zm0-280h480v-200H320v200Zm280 280h200v-200H600v200Zm-280 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Z"/></svg>',
archive:
'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--grey)" d="M200-120v-640q0-33 23.5-56.5T280-840h400q33 0 56.5 23.5T760-760v640L480-240 200-120Zm80-122 200-86 200 86v-518H280v518Zm0-518h400-400Z"/></svg>',
};
diff --git a/frontend/pages/dashboard.vue b/frontend/pages/dashboard.vue
index 1c5a0fd2..e3823fc4 100644
--- a/frontend/pages/dashboard.vue
+++ b/frontend/pages/dashboard.vue
@@ -2,6 +2,7 @@
<div style="display: flex; width: 100%; height: 100%;">
<Sidebar />
<MediumView>
+ <Navbar />
<NuxtPage />
</MediumView>
</div>
diff --git a/frontend/pages/index.vue b/frontend/pages/index.vue
index 34d824ef..d31dc081 100644
--- a/frontend/pages/index.vue
+++ b/frontend/pages/index.vue
@@ -36,6 +36,7 @@ const colorMode = useColorMode();
height: 100%;
display: flex;
flex-direction: column;
+ margin-top: 60px;
}
main {