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 css style

Smaug673959dfa3806923
diff --git a/frontend/.prettierrc b/frontend/.prettierrc
index 48fa5990..eec7ca31 100644
--- a/frontend/.prettierrc
+++ b/frontend/.prettierrc
@@ -1,6 +1,6 @@
{
"singleQuote": true,
- "printWidth": 250,
+ "printWidth": 150,
"trailingComma": "all",
"endOfLine": "lf",
"arrowParens": "avoid"
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index 048ff9af..0e6b18b9 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -1,6 +1,6 @@
<template>
<div class="app-select" :style="{ width: size || '100%' }">
- <div v-if="!open" style="display: flex; justify-content: space-between; align-items: center; padding: 1px">
+ <div v-if="!open" style="display: flex; padding: 1px; align-items: center; justify-content: space-between">
<button @click.stop="toggleDropdown">{{ selected?.label || placeholder }}</button
><svg :class="{ rotated: !open }" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24">
<path d="M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z" />
@@ -89,14 +89,14 @@ onBeforeUnmount(() => window.removeEventListener('click', handleClickOutside));
.app-select {
position: relative;
width: 200px;
- border: 1px solid var(--border-color);
margin: 0;
- background: var(--bg-color);
border: 1px solid var(--border-color);
- color: var(--font-color);
border-radius: 6px;
- font-size: 1rem;
font-family: Inter;
+ font-size: 1rem;
+ color: var(--font-color);
+ background: var(--bg-color);
+
&:focus {
outline: 1px solid var(--primary);
}
@@ -106,16 +106,13 @@ button,
.search-input {
width: 100%;
padding: 8px 10px;
- text-align: left;
- font-size: 1rem;
+ border-radius: 6px;
font-size: 16px;
+ text-align: left;
cursor: pointer;
- border-radius: 6px;
}
.search-input {
- cursor: text;
- border: none;
padding: 6px 10px;
border: none;
cursor: text;
diff --git a/frontend/app/components/AppSelectNode.vue b/frontend/app/components/AppSelectNode.vue
index bf18defe..6402bda8 100644
--- a/frontend/app/components/AppSelectNode.vue
+++ b/frontend/app/components/AppSelectNode.vue
@@ -27,14 +27,12 @@ function select() {
<style scoped>
.tree-node {
display: block;
- margin: 0 auto;
+ margin: 2px auto;
padding: 3px 8px;
border-radius: 6px;
font-size: 14px;
text-align: left;
cursor: pointer;
- font-size: 14px;
- margin: 2px auto;
}
.tree-node:hover {
diff --git a/frontend/app/components/CommandCenter/AdvancedSearchTab.vue b/frontend/app/components/CommandCenter/AdvancedSearchTab.vue
index d7290156..614cbc1b 100644
--- a/frontend/app/components/CommandCenter/AdvancedSearchTab.vue
+++ b/frontend/app/components/CommandCenter/AdvancedSearchTab.vue
@@ -61,7 +61,14 @@
</div>
<div v-if="showSuggestions && filteredTagSuggestions.length > 0" class="tag-suggestions">
- <div v-for="(tag, index) in filteredTagSuggestions" :key="tag" class="tag-suggestion" :class="{ selected: selectedSuggestionIndex === index }" @mousedown="selectTag(tag)" @mouseenter="selectedSuggestionIndex = index">
+ <div
+ v-for="(tag, index) in filteredTagSuggestions"
+ :key="tag"
+ class="tag-suggestion"
+ :class="{ selected: selectedSuggestionIndex === index }"
+ @mousedown="selectTag(tag)"
+ @mouseenter="selectedSuggestionIndex = index"
+ >
{{ tag }}
</div>
</div>
@@ -138,7 +145,9 @@ const showSuggestions = ref(false);
const selectedSuggestionIndex = ref(0);
const categoryStore = useCategoriesStore();
-const categoriesTree = new TreeStructure(useSidebarTree().categories.value).generateTree().filter(i => i.data.type === 'category' && i.data.role == 2);
+const categoriesTree = new TreeStructure(useSidebarTree().categories.value)
+ .generateTree()
+ .filter(i => i.data.type === 'category' && i.data.role == 2);
const allTags = computed(() => {
const tags = new Set<string>();
@@ -294,43 +303,42 @@ function parseTags(tags: string): string[] {
<style scoped lang="scss">
.advanced-search-tab {
display: flex;
- flex-direction: column;
height: 100%;
+ flex-direction: column;
overflow: hidden;
}
.search-filters {
- flex-shrink: 0;
background: var(--bg-color-secondary);
border-bottom: 1px solid var(--border-color);
+ flex-shrink: 0;
}
.filters-header {
display: flex;
- align-items: center;
- justify-content: space-between;
padding: 16px 20px;
+ align-items: center;
border-bottom: 1px solid var(--border-color);
+ justify-content: space-between;
}
.filters-title {
margin: 0;
font-size: 14px;
font-weight: 600;
- text-transform: uppercase;
letter-spacing: 0.5px;
+ text-transform: uppercase;
}
.toggle-filters-btn {
- background: transparent;
- border: none;
-
- cursor: pointer;
+ display: flex;
padding: 4px;
+ border: none;
border-radius: 4px;
+ background: transparent;
transition: transform 0.2s ease;
- display: flex;
align-items: center;
+ cursor: pointer;
justify-content: center;
&:hover {
@@ -358,10 +366,9 @@ function parseTags(tags: string): string[] {
display: block;
font-size: 12px;
font-weight: 600;
- text-transform: uppercase;
-
- margin-bottom: 8px;
letter-spacing: 0.5px;
+ margin-bottom: 8px;
+ text-transform: uppercase;
}
.date-filters {
@@ -375,7 +382,6 @@ function parseTags(tags: string): string[] {
label {
display: block;
font-size: 11px;
-
margin-bottom: 4px;
}
}
@@ -385,8 +391,8 @@ function parseTags(tags: string): string[] {
padding: 8px 12px;
border: 1px solid var(--border-color);
border-radius: 6px;
- background: var(--bg-color);
font-size: 14px;
+ background: var(--bg-color);
outline: none;
&:focus {
@@ -401,10 +407,10 @@ function parseTags(tags: string): string[] {
.radio-option {
display: flex;
+ font-size: 14px;
align-items: center;
- gap: 6px;
cursor: pointer;
- font-size: 14px;
+ gap: 6px;
input[type='radio'] {
accent-color: var(--primary);
@@ -423,12 +429,12 @@ function parseTags(tags: string): string[] {
}
.tag-input {
- flex: 1;
padding: 8px 12px;
border: 1px solid var(--border-color);
border-radius: 6px;
- background: var(--bg-color);
font-size: 14px;
+ background: var(--bg-color);
+ flex: 1;
outline: none;
&:focus {
@@ -437,16 +443,16 @@ function parseTags(tags: string): string[] {
}
.add-tag-btn {
+ display: flex;
padding: 8px 12px;
- background: var(--primary);
border: none;
border-radius: 6px;
color: white;
- cursor: pointer;
- display: flex;
+ background: var(--primary);
+ transition: background-color 0.2s ease;
align-items: center;
+ cursor: pointer;
justify-content: center;
- transition: background-color 0.2s ease;
&:hover {
background: var(--primary-dark, #0056b3);
@@ -457,22 +463,22 @@ function parseTags(tags: string): string[] {
.tag-suggestions {
position: absolute;
top: 100%;
- left: 0;
right: 48px;
- background: var(--bg-color);
- border: 1px solid var(--border-color);
- border-radius: 6px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
+ left: 0;
z-index: 10;
max-height: 200px;
+ border: 1px solid var(--border-color);
+ border-radius: 6px;
+ background: var(--bg-color);
+ box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
overflow-y: auto;
}
.tag-suggestion {
padding: 8px 12px;
- cursor: pointer;
font-size: 14px;
transition: background 0.2s ease;
+ cursor: pointer;
&:hover,
&.selected {
@@ -496,29 +502,28 @@ function parseTags(tags: string): string[] {
.tag-chip {
display: inline-flex;
- align-items: center;
- gap: 4px;
padding: 4px 8px;
- background: var(--border-color);
border-radius: 12px;
font-size: 12px;
+ background: var(--border-color);
+ align-items: center;
+ gap: 4px;
.remove-tag {
- background: none;
- border: none;
-
- cursor: pointer;
- padding: 0;
display: flex;
- align-items: center;
- justify-content: center;
width: 16px;
height: 16px;
+ padding: 0;
+ border: none;
border-radius: 50%;
+ background: none;
+ align-items: center;
+ cursor: pointer;
+ justify-content: center;
&:hover {
- background: var(--text-muted);
color: white;
+ background: var(--text-muted);
}
}
}
@@ -528,8 +533,8 @@ function parseTags(tags: string): string[] {
padding: 8px 12px;
border: 1px solid var(--border-color);
border-radius: 6px;
- background: var(--bg-color);
font-size: 14px;
+ background: var(--bg-color);
outline: none;
&:focus {
@@ -545,13 +550,13 @@ function parseTags(tags: string): string[] {
.clear-filters-btn,
.apply-filters-btn {
- flex: 1;
padding: 10px 16px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
+ flex: 1;
}
.clear-filters-btn {
@@ -563,8 +568,8 @@ function parseTags(tags: string): string[] {
}
.apply-filters-btn {
- background: var(--primary);
color: white;
+ background: var(--primary);
&:hover {
background: var(--primary-dark, #0056b3);
@@ -572,12 +577,12 @@ function parseTags(tags: string): string[] {
}
.search-results {
+ position: relative;
+ min-height: 0;
flex: 1;
+ -webkit-overflow-scrolling: touch;
overflow-y: auto;
- min-height: 0;
- position: relative;
overscroll-behavior: contain;
- -webkit-overflow-scrolling: touch;
}
.no-results {
@@ -587,8 +592,8 @@ function parseTags(tags: string): string[] {
.no-results-icon {
width: 48px;
height: 48px;
- margin-bottom: 16px;
opacity: 0.5;
+ margin-bottom: 16px;
}
p {
@@ -598,19 +603,19 @@ function parseTags(tags: string): string[] {
}
.documents-list {
+ max-height: 100%;
padding: 8px 0;
overflow-y: auto;
- max-height: 100%;
}
.document-item {
display: flex;
- align-items: center;
- gap: 12px;
- padding: 12px 20px;
margin: 0 5px;
+ padding: 12px 20px;
border-radius: 8px;
+ align-items: center;
cursor: pointer;
+ gap: 12px;
&:hover {
background: var(--border-color);
@@ -625,30 +630,30 @@ function parseTags(tags: string): string[] {
}
.document-info {
- flex: 1;
min-width: 0;
+ flex: 1;
}
.document-title {
font-weight: 600;
margin-bottom: 4px;
- white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
+ white-space: nowrap;
}
.document-meta {
display: flex;
+ font-size: 12px;
gap: 12px;
margin-bottom: 6px;
- font-size: 12px;
}
.document-category {
- background: var(--border-color);
padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
+ background: var(--border-color);
}
.document-date {
@@ -657,23 +662,22 @@ function parseTags(tags: string): string[] {
.document-tags {
display: flex;
- gap: 4px;
flex-wrap: wrap;
+ gap: 4px;
}
.tag {
- background: var(--primary);
- color: white;
padding: 2px 6px;
border-radius: 4px;
font-size: 10px;
font-weight: 500;
+ color: white;
+ background: var(--primary);
}
.navigate-icon {
width: 16px;
height: 16px;
-
flex-shrink: 0;
}
</style>
diff --git a/frontend/app/components/CommandCenter/QuickSearchTab.vue b/frontend/app/components/CommandCenter/QuickSearchTab.vue
index 2df49e8c..51f62326 100644
--- a/frontend/app/components/CommandCenter/QuickSearchTab.vue
+++ b/frontend/app/components/CommandCenter/QuickSearchTab.vue
@@ -137,36 +137,36 @@ defineExpose({ flattenedItems });
<style scoped lang="scss">
.quick-search-tab {
display: flex;
- flex-direction: column;
height: 100%;
+ flex-direction: column;
overflow: hidden;
}
.search-results {
+ position: relative;
+ min-height: 0;
flex: 1;
+ -webkit-overflow-scrolling: touch;
overflow-y: auto;
- min-height: 0;
- position: relative;
overscroll-behavior: contain;
- -webkit-overflow-scrolling: touch;
}
.search-results-list {
+ max-height: 100%;
padding: 8px 0;
overflow-y: auto;
- max-height: 100%;
}
.search-result-item {
display: flex;
- align-items: center;
- gap: 10px;
- padding: 8px 20px;
margin: 0 5px;
+ padding: 8px 20px;
border-radius: 8px;
+ color: inherit;
+ align-items: center;
cursor: pointer;
+ gap: 10px;
text-decoration: none;
- color: inherit;
&:hover,
&.selected {
@@ -182,32 +182,30 @@ defineExpose({ flattenedItems });
}
.result-content {
- flex: 1;
display: flex;
+ min-width: 0;
+ flex: 1;
flex-direction: column;
gap: 4px;
- min-width: 0;
}
.result-title {
font-weight: 600;
- white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
+ white-space: nowrap;
}
.result-description {
font-size: 13px;
-
- white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
+ white-space: nowrap;
}
.navigate-icon {
width: 16px;
height: 16px;
-
flex-shrink: 0;
}
@@ -218,12 +216,11 @@ defineExpose({ flattenedItems });
.section-title {
position: sticky;
top: 0;
- background: var(--bg-color);
z-index: 1;
+ padding: 6px 20px;
font-size: 12px;
+ background: var(--bg-color);
text-transform: uppercase;
-
- padding: 6px 20px;
}
.no-results {
@@ -233,8 +230,8 @@ defineExpose({ flattenedItems });
.no-results-icon {
width: 48px;
height: 48px;
- margin-bottom: 16px;
opacity: 0.5;
+ margin-bottom: 16px;
}
p {
diff --git a/frontend/app/components/CommandCenter/TabNavigation.vue b/frontend/app/components/CommandCenter/TabNavigation.vue
index 8c1d84f5..423d088c 100644
--- a/frontend/app/components/CommandCenter/TabNavigation.vue
+++ b/frontend/app/components/CommandCenter/TabNavigation.vue
@@ -41,29 +41,29 @@ const tabs: Tab[] = [
<style scoped lang="scss">
.tab-navigation {
display: flex;
- border-bottom: 1px solid var(--border-color);
background: var(--bg-color);
+ border-bottom: 1px solid var(--border-color);
}
.tab-button {
display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
padding: 16px 20px;
- background: transparent;
border: none;
- cursor: pointer;
+ border-radius: 0;
font-size: 14px;
font-weight: 500;
+ background: transparent;
+ align-items: center;
border-bottom: 2px solid transparent;
+ cursor: pointer;
flex: 1;
- border-radius: 0;
+ gap: 8px;
+ justify-content: center;
&.active {
color: var(--primary);
- border-bottom-color: var(--primary);
background: var(--bg-color-secondary);
+ border-bottom-color: var(--primary);
}
}
diff --git a/frontend/app/components/CommandCenter/index.vue b/frontend/app/components/CommandCenter/index.vue
index a84c2091..2d347985 100644
--- a/frontend/app/components/CommandCenter/index.vue
+++ b/frontend/app/components/CommandCenter/index.vue
@@ -6,7 +6,14 @@
<div class="search-header">
<div class="search-input-wrapper">
<Icon name="search" class="search-icon" fill="var(--font-color)" />
- <input ref="searchInput" v-model="searchQuery" type="text" placeholder="Search for a page, action, or document..." class="search-input" @keydown="handleSearchKeydown" />
+ <input
+ ref="searchInput"
+ v-model="searchQuery"
+ type="text"
+ placeholder="Search for a page, action, or document..."
+ class="search-input"
+ @keydown="handleSearchKeydown"
+ />
</div>
<button class="close-btn" @click="closeSearch">
<Icon name="close" />
@@ -18,14 +25,24 @@
<!-- Tab Content -->
<div class="tab-content">
- <QuickSearchTab v-if="activeTab === 'quick'" ref="quickSearchTab" :search-query="searchQuery" :selected-index="selectedIndex" :documents="documentsStore.getAll" @select-item="closeSearch" @update-selected-index="updateSelectedIndex" />
+ <QuickSearchTab
+ v-if="activeTab === 'quick'"
+ ref="quickSearchTab"
+ :search-query="searchQuery"
+ :selected-index="selectedIndex"
+ :documents="documentsStore.getAll"
+ @select-item="closeSearch"
+ @update-selected-index="updateSelectedIndex"
+ />
<AdvancedSearchTab v-else-if="activeTab === 'advanced'" :documents="documentsStore.getAll" @select-document="handleDocumentSelect" />
</div>
<!-- Footer -->
<div class="search-footer">
- <div class="shortcuts"><kbd>↑↓</kbd> or <kbd>Tab</kbd>Navigate <kbd>Enter</kbd> Select <kbd>⇄</kbd> Switch tabs <kbd>Escape</kbd> Close</div>
+ <div class="shortcuts">
+ <kbd>↑↓</kbd> or <kbd>Tab</kbd>Navigate <kbd>Enter</kbd> Select <kbd>⇄</kbd> Switch tabs <kbd>Escape</kbd> Close
+ </div>
</div>
</div>
</div>
@@ -163,76 +180,69 @@ watch(searchQuery, () => {
<style scoped lang="scss">
.command-center-overlay {
position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.5);
- backdrop-filter: blur(2px);
+ inset: 0;
z-index: 9999;
display: flex;
+ background: rgb(0 0 0 / 50%);
align-items: flex-start;
+ backdrop-filter: blur(2px);
justify-content: center;
padding-top: 10vh;
}
.command-center-modal {
- background: var(--bg-color);
- border: 1px solid var(--border-color);
- border-radius: 16px;
- box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
+ position: relative;
+ display: flex;
width: 92%;
max-width: 720px;
max-height: 80vh;
- display: flex;
+ border: 1px solid var(--border-color);
+ border-radius: 16px;
+ background: var(--bg-color);
+ box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
+ animation: slide-in 0.2s ease-out;
flex-direction: column;
overflow: auto;
- animation: slideIn 0.2s ease-out;
- position: relative;
}
.search-header {
display: flex;
- align-items: center;
padding: 20px;
+ align-items: center;
border-bottom: 1px solid var(--border-color);
- gap: 12px;
flex-shrink: 0;
+ gap: 12px;
}
.search-input-wrapper {
- flex: 1;
position: relative;
+ flex: 1;
}
.search-icon {
position: absolute;
- left: 12px;
top: 50%;
- transform: translateY(-50%);
+ left: 12px;
width: 20px;
height: 20px;
+ transform: translateY(-50%);
}
.search-input {
width: 100%;
padding: 12px 12px 12px 44px;
border: none;
- background: transparent;
font-size: 16px;
+ background: transparent;
outline: none;
-
- &::placeholder {
- }
}
.close-btn {
- background: transparent;
- border: none;
-
- cursor: pointer;
padding: 8px;
+ border: none;
border-radius: 8px;
+ background: transparent;
+ cursor: pointer;
&:hover {
background: var(--border-color);
@@ -240,50 +250,51 @@ watch(searchQuery, () => {
}
.tab-content {
+ position: relative;
+ min-height: 0;
flex: 1;
overflow: auto;
- min-height: 0;
- position: relative;
}
.search-footer {
padding: 16px 20px;
- border-top: 1px solid var(--border-color);
background: var(--bg-color-secondary);
+ border-top: 1px solid var(--border-color);
flex-shrink: 0;
}
.shortcuts {
display: flex;
- gap: 10px;
font-size: 13px;
font-weight: 500;
+ gap: 10px;
kbd {
- background: var(--border-color);
padding: 2px 6px;
border-radius: 4px;
font-family: monospace;
font-weight: 600;
+ background: var(--border-color);
}
}
-@keyframes slideIn {
+@keyframes slide-in {
from {
opacity: 0;
transform: scale(0.95);
}
+
to {
opacity: 1;
transform: scale(1);
}
}
-@media (max-width: 768px) {
+@media (width <= 768px) {
.command-center-modal {
width: 95%;
- margin: 20px;
max-height: 80vh;
+ margin: 20px;
}
.shortcuts {
diff --git a/frontend/app/pages/(public)/_components/ContributorsMarquee.vue b/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
index 2c0b0fde..7180acf6 100644
--- a/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
+++ b/frontend/app/pages/(public)/_components/ContributorsMarquee.vue
@@ -105,7 +105,6 @@ onMounted(fetchContributors);
.hint {
font-size: 13px;
-
margin-top: 6px;
}
diff --git a/frontend/app/pages/(public)/login/index.vue b/frontend/app/pages/(public)/login/index.vue
index 8cb01654..21a01b56 100644
--- a/frontend/app/pages/(public)/login/index.vue
+++ b/frontend/app/pages/(public)/login/index.vue
@@ -184,7 +184,6 @@ input {
.forgot-password-link {
font-size: 16px;
font-weight: 500;
-
text-align: center;
margin-top: 1rem;
diff --git a/frontend/app/pages/dashboard/home.vue b/frontend/app/pages/dashboard/home.vue
index 3848b81d..ee7225a7 100644
--- a/frontend/app/pages/dashboard/home.vue
+++ b/frontend/app/pages/dashboard/home.vue
@@ -87,7 +87,6 @@ h1 {
padding: 12px 20px;
border-radius: 12px;
font-size: 14px;
-
background: var(--border-color);
align-items: center;
gap: 8px;