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.

Simplify HTML structure (remove container)

Smaug67397978da9ed570
diff --git a/frontend/components/Navbar.vue b/frontend/components/Navbar.vue
index 60f9ec46..13bb1050 100644
--- a/frontend/components/Navbar.vue
+++ b/frontend/components/Navbar.vue
@@ -1,53 +1,44 @@
<template>
- <header>
- <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>
- <BreadCrumb v-if="!isMobile()" />
- </div>
- <ThemeToggle />
- </header>
+ <header>
+ <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>
+ <BreadCrumb v-if="!isMobile()" />
+ <ThemeToggle style="margin-left: auto" />
+ </header>
</template>
<style lang="scss" scoped>
header {
- height: 50px;
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- border-bottom: 1px solid var(--border-color);
- margin-bottom: 15px;
-}
-
-.container {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 10px 0;
+ height: 50px;
+ width: 100%;
+ display: flex;
+ align-items: center;
+ border-bottom: 1px solid var(--border-color);
+ margin-bottom: 15px;
+ padding: 10px 0;
}
svg {
- fill: var(--font-color);
- height: 25px;
- width: 25px;
+ fill: var(--font-color);
+ height: 25px;
+ width: 25px;
}
button {
- padding: 0;
- margin: 0
+ padding: 0;
+ margin: 0;
}
// Mobile styles
@media screen and (max-width: 719px) {
- .no-mobile {
- display: none;
- }
+ .no-mobile {
+ display: none;
+ }
}
</style>
<script lang="ts" setup>
const { toggleSidebar, isOpened } = useSidebar();
-</script>
\ No newline at end of file
+</script>
diff --git a/frontend/styles/theme.scss b/frontend/styles/theme.scss
index a2bee53a..dfca24af 100644
--- a/frontend/styles/theme.scss
+++ b/frontend/styles/theme.scss
@@ -31,10 +31,6 @@ button {
width: fit-content;
background: transparent;
- &:hover {
- background-color: var(--bg-contrast-2);
- }
-
&:disabled {
opacity: 0.8;
cursor: not-allowed;