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.

Navigation buttons

Smaug673968af586f36ea
diff --git a/frontend/components/BreadCrumb.vue b/frontend/components/BreadCrumb.vue
index 1dd58e8d..894764c9 100644
--- a/frontend/components/BreadCrumb.vue
+++ b/frontend/components/BreadCrumb.vue
@@ -1,5 +1,7 @@
<template>
- <nav aria-label="breadcrumb">
+ <nav class="breadcrumb">
+ <svg @click="next" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z" /></svg>
+ <svg @click="previous" xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z" /></svg>
<ol class="breadcrumb">
<li v-for="(segment, index) in breadcrumbs" :key="index" class="breadcrumb-item">
<NuxtLink :to="segment.path"> {{ segment.name }} </NuxtLink>
@@ -12,6 +14,8 @@
const route = useRoute();
const router = useRouter();
const breadcrumbs: Ref<Array<{ name: string; path: string }>> = ref([]);
+const next = () => useRouter().go(-1);
+const previous = () => useRouter().go(1);
declare module 'vue-router' {
interface RouteMeta {
@@ -35,13 +39,27 @@ watchEffect(() => {
});
</script>
-<style scoped>
+<style scoped lang="scss">
.breadcrumb {
display: flex;
flex-wrap: wrap;
+ align-items: center;
list-style: none;
padding: 3px;
}
+// Svg bubble button nav
+.breadcrumb svg {
+ width: 27px;
+ height: 27px;
+ margin-right: 8px;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ border-radius: 50%;
+ fill: var(--font-color);
+ &:hover {
+ background-color: var(--border-color);
+ }
+}
.breadcrumb-item + .breadcrumb-item::before {
content: '>';