π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Improve responsive design of breadcrumb
Smaug67391a2b7012866f
diff --git a/frontend/app/components/BreadCrumb.vue b/frontend/app/components/BreadCrumb.vueindex fe4957a3..fdcb1f7a 100644--- a/frontend/app/components/BreadCrumb.vue+++ b/frontend/app/components/BreadCrumb.vue@@ -1,8 +1,8 @@<template>- <nav class="breadcrumb">+ <nav class="breadcrumb no-mobile" aria-label="Breadcrumb"><svgv-if="preferences.get('navbarItems').value.navigation"- :class="{ disabled: !canGoBack }"+ :class="{ disabled: !canGoBack, 'no-tablet': true }"xmlns="http://www.w3.org/2000/svg"viewBox="0 -960 960 960"@click="goBack"@@ -12,7 +12,7 @@<svgv-if="preferences.get('navbarItems').value.navigation"- :class="{ disabled: !canGoForward }"+ :class="{ disabled: !canGoForward, 'no-tablet': true }"xmlns="http://www.w3.org/2000/svg"viewBox="0 -960 960 960"@click="goForward"diff --git a/frontend/app/components/Navbar.vue b/frontend/app/components/Navbar.vueindex 23397e6a..4093382c 100644--- a/frontend/app/components/Navbar.vue+++ b/frontend/app/components/Navbar.vue@@ -6,7 +6,7 @@<path d="M120-240v-80h720v80H120Zm0-200v-80h720v80H120Zm0-200v-80h720v80H120Z" /></svg></button>- <BreadCrumb v-if="!isMobile() && preferences.get('navbarItems').value.breadcrumb" />+ <BreadCrumb v-if="preferences.get('navbarItems').value.breadcrumb" /></div><div><buttondiff --git a/frontend/app/styles/main.scss b/frontend/app/styles/main.scssindex a8e7d2e5..f75217c9 100644--- a/frontend/app/styles/main.scss+++ b/frontend/app/styles/main.scss@@ -118,8 +118,16 @@ form {}}+// TABLET \\+@media screen and (width <=1023px) {+ .no-tablet {+ display: none;+ }+}++// MOBILE \\@media screen and (width <=719px) {.no-mobile {- display: none;+ display: none !important;}}\ No newline at end of file