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.

refactor(styles): replace fixed border-radius with variable for consistency

Smaug6739f6a8f041223e
diff --git a/frontend/app/components/AppDotMenu.vue b/frontend/app/components/AppDotMenu.vue
index 4b9a885a..0a9d33cc 100644
--- a/frontend/app/components/AppDotMenu.vue
+++ b/frontend/app/components/AppDotMenu.vue
@@ -47,7 +47,7 @@ onBeforeUnmount(() => document.removeEventListener('mousedown', handleClickOutsi
.menu-button {
padding: 0;
border: none;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
line-height: 1;
background: none;
cursor: pointer;
diff --git a/frontend/app/components/AppDrop.vue b/frontend/app/components/AppDrop.vue
index 0ff38567..79cc2d91 100644
--- a/frontend/app/components/AppDrop.vue
+++ b/frontend/app/components/AppDrop.vue
@@ -278,7 +278,7 @@ defineExpose({ reset });
height: 28px;
padding: 0;
border: none;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
color: var(--text-secondary);
background: transparent;
opacity: 0.6;
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index 1a6122ee..e4d619a2 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -407,7 +407,7 @@ button,
display: flex;
margin: 2px 0 6px;
padding: 6px 12px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 0.9rem;
color: var(--text-secondary);
transition:
diff --git a/frontend/app/components/AppSelectNode.vue b/frontend/app/components/AppSelectNode.vue
index 8e7538f0..6df04b28 100644
--- a/frontend/app/components/AppSelectNode.vue
+++ b/frontend/app/components/AppSelectNode.vue
@@ -34,7 +34,7 @@ function select() {
display: block;
margin: 0 auto;
padding: 4px 8px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 0.85rem;
text-align: left;
cursor: pointer;
diff --git a/frontend/app/components/AppTagInput.vue b/frontend/app/components/AppTagInput.vue
index 65aff1ad..be7f1687 100644
--- a/frontend/app/components/AppTagInput.vue
+++ b/frontend/app/components/AppTagInput.vue
@@ -175,7 +175,7 @@ input {
display: flex;
padding: 6px 10px;
border: none;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
color: white;
background: var(--primary);
align-items: center;
@@ -195,7 +195,7 @@ input {
z-index: 10;
max-height: 150px;
border: 1px solid var(--border);
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: var(--surface-base);
box-shadow: var(--shadow-md);
margin-top: 2px;
diff --git a/frontend/app/components/BreadCrumb.vue b/frontend/app/components/BreadCrumb.vue
index 2cf3ba04..b1edaf3b 100644
--- a/frontend/app/components/BreadCrumb.vue
+++ b/frontend/app/components/BreadCrumb.vue
@@ -123,7 +123,7 @@ nav {
a {
padding: 4px 8px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 14px;
font-weight: 500;
color: var(--text-body);
diff --git a/frontend/app/components/CommandCenter/AdvancedSearchTab.vue b/frontend/app/components/CommandCenter/AdvancedSearchTab.vue
index 635c680f..758466db 100644
--- a/frontend/app/components/CommandCenter/AdvancedSearchTab.vue
+++ b/frontend/app/components/CommandCenter/AdvancedSearchTab.vue
@@ -286,7 +286,7 @@ defineExpose({ flattenedItems });
display: flex;
padding: 4px;
border: none;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: transparent;
transition: transform $transition-fast ease;
align-items: center;
@@ -381,7 +381,7 @@ defineExpose({ flattenedItems });
.clear-filters-btn {
padding: 6px 12px;
border: none;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 12px;
font-weight: 500;
cursor: pointer;
diff --git a/frontend/app/components/Kanban/Column.vue b/frontend/app/components/Kanban/Column.vue
index ec1de100..6587ee82 100644
--- a/frontend/app/components/Kanban/Column.vue
+++ b/frontend/app/components/Kanban/Column.vue
@@ -346,7 +346,7 @@ function handleClickOutside(e: MouseEvent) {
}
&::-webkit-scrollbar-thumb {
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: transparent;
}
diff --git a/frontend/app/components/MarkdownSyntax.vue b/frontend/app/components/MarkdownSyntax.vue
index edec8e68..64b60ebb 100644
--- a/frontend/app/components/MarkdownSyntax.vue
+++ b/frontend/app/components/MarkdownSyntax.vue
@@ -287,7 +287,7 @@ h2 {
code {
padding: 0.2rem 0.4rem;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-family: $font-mono;
font-size: 0.8rem;
}
diff --git a/frontend/app/components/Node/Card/Workspace.vue b/frontend/app/components/Node/Card/Workspace.vue
index 451d487f..dd426def 100644
--- a/frontend/app/components/Node/Card/Workspace.vue
+++ b/frontend/app/components/Node/Card/Workspace.vue
@@ -119,7 +119,7 @@ const getWorkspaceDocCount = (workspaceId: string) => {
.child-badge {
padding: 0.2rem 0.5rem;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 0.75rem;
color: var(--text-secondary);
background: var(--surface-raised);
diff --git a/frontend/app/components/Node/Document/Skeleton.vue b/frontend/app/components/Node/Document/Skeleton.vue
index b7cca7a1..b1ab0576 100644
--- a/frontend/app/components/Node/Document/Skeleton.vue
+++ b/frontend/app/components/Node/Document/Skeleton.vue
@@ -43,7 +43,7 @@
.skeleton-line {
height: 22px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: linear-gradient(90deg, var(--border) 25%, var(--surface-raised) 37%, var(--border) 63%);
background-size: 200% 100%;
animation: skeleton-loading 1.5s infinite;
diff --git a/frontend/app/components/Node/Tree/Item.vue b/frontend/app/components/Node/Tree/Item.vue
index 06463500..0b2b3e66 100644
--- a/frontend/app/components/Node/Tree/Item.vue
+++ b/frontend/app/components/Node/Tree/Item.vue
@@ -180,7 +180,7 @@ function toggleExpand() {
.node-type {
padding: 2px 8px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 0.6875rem;
font-weight: 500;
color: var(--text-secondary);
diff --git a/frontend/app/components/Sidebar/SidebarItem.vue b/frontend/app/components/Sidebar/SidebarItem.vue
index dc9744b6..56a17139 100644
--- a/frontend/app/components/Sidebar/SidebarItem.vue
+++ b/frontend/app/components/Sidebar/SidebarItem.vue
@@ -138,7 +138,7 @@ const drop = async (event: DragEvent) => {
.item-icon {
padding: 2px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
}
}
diff --git a/frontend/app/pages/(public)/_components/BentoFeatures.vue b/frontend/app/pages/(public)/_components/BentoFeatures.vue
index dd4eefaf..f67e6943 100644
--- a/frontend/app/pages/(public)/_components/BentoFeatures.vue
+++ b/frontend/app/pages/(public)/_components/BentoFeatures.vue
@@ -380,7 +380,7 @@
.syntax-code {
padding: 2px 6px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
color: var(--green);
background: var(--green-bg);
}
diff --git a/frontend/app/pages/(public)/_components/FeaturesShowcase.vue b/frontend/app/pages/(public)/_components/FeaturesShowcase.vue
index c52ed0b5..59ec8450 100644
--- a/frontend/app/pages/(public)/_components/FeaturesShowcase.vue
+++ b/frontend/app/pages/(public)/_components/FeaturesShowcase.vue
@@ -315,7 +315,7 @@ onUnmounted(() => {
}
&::-webkit-scrollbar-thumb {
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: var(--border);
}
}
diff --git a/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue b/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
index 708bcba5..f8d5a762 100644
--- a/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
+++ b/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
@@ -67,7 +67,7 @@ defineEmits(['edit', 'delete']);
.tree-actions span {
margin: 0 2.5px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
cursor: pointer;
}
diff --git a/frontend/app/pages/dashboard/cdn/index.vue b/frontend/app/pages/dashboard/cdn/index.vue
index f0e99615..a03a1ac8 100644
--- a/frontend/app/pages/dashboard/cdn/index.vue
+++ b/frontend/app/pages/dashboard/cdn/index.vue
@@ -222,14 +222,14 @@ const bulkDelete = async (lines: Field[]) => {
.progress-bar {
height: 8px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: var(--surface-transparent);
flex: 1;
overflow: hidden;
.progress-fill {
height: 100%;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: var(--primary);
transition: width $transition-medium ease;
@@ -311,7 +311,7 @@ const bulkDelete = async (lines: Field[]) => {
height: 34px;
padding: 4px;
border: 1px solid var(--border);
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 12px;
font-weight: bold;
color: var(--text-secondary);
diff --git a/frontend/app/pages/dashboard/home.vue b/frontend/app/pages/dashboard/home.vue
index 2d936a16..8be97ba6 100644
--- a/frontend/app/pages/dashboard/home.vue
+++ b/frontend/app/pages/dashboard/home.vue
@@ -316,7 +316,7 @@ const openCreateWorkspace = () => useModal().add(new Modal(shallowRef(CreateCate
.search-clear {
padding: 0.25rem;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
cursor: pointer;
&:hover {
@@ -389,7 +389,7 @@ const openCreateWorkspace = () => useModal().add(new Modal(shallowRef(CreateCate
.result-type {
padding: 0.2rem 0.5rem;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 0.75rem;
color: var(--text-secondary);
background: var(--surface-raised);
@@ -517,7 +517,7 @@ const openCreateWorkspace = () => useModal().add(new Modal(shallowRef(CreateCate
.activity-icon {
padding: 0.3rem;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
}
.activity-content {
diff --git a/frontend/app/pages/dashboard/import/_components/ImportProgress.vue b/frontend/app/pages/dashboard/import/_components/ImportProgress.vue
index ef23ad69..4974d564 100644
--- a/frontend/app/pages/dashboard/import/_components/ImportProgress.vue
+++ b/frontend/app/pages/dashboard/import/_components/ImportProgress.vue
@@ -84,7 +84,7 @@ const statusLabel = computed(() => {
.progress-bar-container {
width: 100%;
height: 8px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: var(--border);
margin-bottom: 0.75rem;
overflow: hidden;
@@ -92,7 +92,7 @@ const statusLabel = computed(() => {
.progress-bar {
height: 100%;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: var(--primary);
transition: width $transition-medium ease;
}
diff --git a/frontend/app/pages/dashboard/settings/_views/backups.vue b/frontend/app/pages/dashboard/settings/_views/backups.vue
index f0915fb3..cd5a4631 100644
--- a/frontend/app/pages/dashboard/settings/_views/backups.vue
+++ b/frontend/app/pages/dashboard/settings/_views/backups.vue
@@ -329,7 +329,7 @@ onUnmounted(() => {
.progress-bar-container {
width: 100%;
height: 8px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: var(--border);
margin-bottom: 0.75rem;
overflow: hidden;
@@ -337,7 +337,7 @@ onUnmounted(() => {
.progress-bar {
height: 100%;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background: var(--primary);
transition: width $transition-medium ease;
}
diff --git a/frontend/app/pages/dashboard/settings/_views/snippets.vue b/frontend/app/pages/dashboard/settings/_views/snippets.vue
index 46858f48..12a3d5bf 100644
--- a/frontend/app/pages/dashboard/settings/_views/snippets.vue
+++ b/frontend/app/pages/dashboard/settings/_views/snippets.vue
@@ -204,7 +204,7 @@ const handleDictImport = async (e: Event) => {
code {
padding: 0.1rem 0.4rem;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 0.85em;
background: var(--code-bg);
}
@@ -274,7 +274,7 @@ const handleDictImport = async (e: Event) => {
height: 36px;
padding: 6px;
border: 1px solid var(--border);
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 13px;
font-weight: bold;
color: var(--text-secondary);
@@ -300,7 +300,7 @@ const handleDictImport = async (e: Event) => {
// Code styling for table
:deep(.snippet-code) {
padding: 0.2rem 0.5rem;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-family: $font-mono;
font-size: 0.85rem;
font-weight: 500;
diff --git a/frontend/app/styles/base/typography.scss b/frontend/app/styles/base/typography.scss
index f9a173e1..98fbb707 100644
--- a/frontend/app/styles/base/typography.scss
+++ b/frontend/app/styles/base/typography.scss
@@ -80,7 +80,7 @@ hr {
blockquote {
padding: 0 15px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
border-left: 4px solid var(--primary);
> :first-child {
diff --git a/frontend/app/styles/features/document-theme.scss b/frontend/app/styles/features/document-theme.scss
index 8119f321..e7267bec 100644
--- a/frontend/app/styles/features/document-theme.scss
+++ b/frontend/app/styles/features/document-theme.scss
@@ -145,7 +145,7 @@
display: flex;
margin: 0.5em 0;
padding: 0;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
color: var(--text-body);
background-color: transparent;
gap: 1rem;
@@ -172,7 +172,7 @@
margin: 2em 0;
padding: 4px;
border: none;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 16px;
color: var(--text-body);
@@ -357,7 +357,7 @@
}
.custom-block {
- border-radius: 4px;
+ border-radius: var(--radius-xs);
font-size: 15px;
color: var(--text-body);
diff --git a/frontend/app/styles/features/markdown.scss b/frontend/app/styles/features/markdown.scss
index 71c0de7c..d5c13734 100644
--- a/frontend/app/styles/features/markdown.scss
+++ b/frontend/app/styles/features/markdown.scss
@@ -2,7 +2,7 @@
.markdown-container {
padding: 10px;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
background-color: var(--surface-raised);
margin-top: 10px;