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.

Improvments

Veauville Raphael3d58bd2f9760
diff --git a/@alexandrie/styles/src/_variables.scss b/@alexandrie/styles/src/_variables.scss
index eb966111..552b439b 100644
--- a/@alexandrie/styles/src/_variables.scss
+++ b/@alexandrie/styles/src/_variables.scss
@@ -6,7 +6,7 @@ $red: #dc3545;
$white: white;
$orange: #fd7e14;
$yellow: #ffc107;
-$green: #28a745;
+$green: #009879;
$grey: #ffffffd9;
$black: #27323A;
@@ -40,41 +40,43 @@ $transition-duration: 0.3s;
--blue: #009df7;
--blue-bg: #cce0ff;
--blue-border: rgba(0, 123, 255, 0.3);
- --green: #28A745;
+ --green: #009879;
--green-bg: rgba(40, 167, 69, 0.15);
--green-border: rgba(40, 167, 69, 0.3);
--red: #DC3545;
--red-bg: rgba(220, 53, 69, 0.15);
--red-border: rgba(220, 53, 69, 0.3);
- --yellow: #f7b32d;
+ --yellow: #FF9800;
--yellow-bg: rgba(255, 193, 7, 0.15);
--yellow-border: rgba(255, 193, 7, 0.3);
--turquoise: #17A2B8;
--turquoise-bg: rgba(23, 162, 184, 0.2);
--turquoise-border: rgba(23, 162, 184, 0.25);
+
+ --pink: #FF2E63;
}
.dark-mode {
- --bg-color: #202025;
+ --bg-color: #0f0f11;
--bg-contrast: #27262b;
--bg-contrast-2: #484852;
--font-color: #ddd;
- --border-color: rgba(255, 255, 255, 0.7);
+ --border-color: rgba(35, 33, 37, 0.7);
// COLORS \\
--grey: #e0e0e0;
--grey-bg: rgb(47, 47, 47);
--blue: #47a6ff;
--blue-bg: rgb(0, 140, 216, 0.2);
--blue-border: rgba(0, 140, 216, 0.25);
- --green: #42b983;
+ --green: #009879;
--green-bg: rgba(66, 184, 131, 0.2);
--green-border: rgba(66, 184, 131, 0.25);
--red: #ff4882;
--red-bg: rgba(237, 60, 80, 0.2);
--red-border: rgba(237, 60, 80, .25);
- --yellow: #f7b32d;
+ --yellow: #FF9800;
--yellow-bg: rgba(255, 197, 23, 0.2);
--yellow-border: rgba(255, 197, 23, .25);
--turquoise: #00d6b4;
@@ -93,7 +95,7 @@ $transition-duration: 0.3s;
--blue: #007bff;
--blue-bg: rgba(0, 123, 255, 0.2);
--blue-border: rgba(0, 123, 255, 0.25);
- --green: #28a745;
+ --green: #009879;
--green-bg: rgba(40, 167, 69, 0.2);
--green-border: rgba(40, 167, 69, 0.25);
--red: #dc3545;
@@ -106,4 +108,4 @@ $transition-duration: 0.3s;
--turquoise-bg: rgba(1, 177, 150, 0.2);
--turquoise-border: rgba(1, 177, 150, 0.25);
--border-color: rgba(0, 0, 0, 0.5);
-}
+}
\ No newline at end of file
diff --git a/@alexandrie/styles/src/document-theme.scss b/@alexandrie/styles/src/document-theme.scss
index 801e2749..0682d741 100644
--- a/@alexandrie/styles/src/document-theme.scss
+++ b/@alexandrie/styles/src/document-theme.scss
@@ -6,4 +6,6 @@
text-decoration: underline;
}
}
+
+ max-width: 100%;
}
\ No newline at end of file
diff --git a/@alexandrie/styles/src/theme.scss b/@alexandrie/styles/src/theme.scss
index 9a9915e3..f61f3fd7 100644
--- a/@alexandrie/styles/src/theme.scss
+++ b/@alexandrie/styles/src/theme.scss
@@ -165,38 +165,28 @@ select {
}
table {
- border-collapse: separate;
- border-spacing: 0;
- background-color: var(--contrast-color);
-
- tr:first-child {
- th:first-child {
- border-top-left-radius: 10px;
- }
-
- th:last-child {
- border-top-right-radius: 10px;
- }
- }
+ border-collapse: collapse;
+ margin: 25px 0;
+ font-size: 0.9em;
+ min-width: 400px;
+ overflow-x: auto;
- tr:last-child {
- td:first-child {
- border-bottom-left-radius: 10px;
- }
+ th,
+ td {
+ padding: 12px 15px;
+ }
- td:last-child {
- border-bottom-right-radius: 10px;
- }
+ tbody tr {
+ border-bottom: 1px solid var(--border-color);
}
- td,
- th {
- border: 1px solid var(--border-color);
- padding: 3px;
+ tbody tr:nth-of-type(even) {
+ background-color: var(--bg-contrast);
}
@media (max-width: 600px) {
zoom: 0.9;
+ min-width: 300px;
}
}
diff --git a/dashboard/components/sidebar/CollapseItem.vue b/dashboard/components/sidebar/CollapseItem.vue
index 0e245083..e2103e2c 100644
--- a/dashboard/components/sidebar/CollapseItem.vue
+++ b/dashboard/components/sidebar/CollapseItem.vue
@@ -50,6 +50,7 @@ h2 {
svg {
height: 20px;
+ fill: var(--font-color);
:hover {
cursor: pointer;
diff --git a/dashboard/components/sidebar/Resizable.vue b/dashboard/components/sidebar/Resizable.vue
index f2323338..8c5d696c 100644
--- a/dashboard/components/sidebar/Resizable.vue
+++ b/dashboard/components/sidebar/Resizable.vue
@@ -57,7 +57,7 @@ nav {
}
.sidebar {
- background-color: var(--bg-contrast);
+ background-color: var(--bg-color);
overflow-x: hidden;
height: 100%;
display: flex;
@@ -76,7 +76,7 @@ nav {
.sidebar {
&:hover {
.separator {
- background-color: var(--bg-contrast-2);
+ background-color: var(--bg-contrast);
}
}
}
diff --git a/dashboard/components/sidebar/Sidebar.vue b/dashboard/components/sidebar/Sidebar.vue
index 19adf931..21ca7c49 100644
--- a/dashboard/components/sidebar/Sidebar.vue
+++ b/dashboard/components/sidebar/Sidebar.vue
@@ -55,7 +55,7 @@ function formatTree(): Item[] {
items.push({
id: parent.id,
title: parent.name,
- icon: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--blue);" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640H447l-80-80H160v480l96-320h684L837-217q-8 26-29.5 41.5T760-160H160Zm84-80h516l72-240H316l-72 240Zm0 0 72-240-72 240Zm-84-400v-80 80Z"/></svg>`,
+ icon: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--yellow);" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640H447l-80-80H160v480l96-320h684L837-217q-8 26-29.5 41.5T760-160H160Zm84-80h516l72-240H316l-72 240Zm0 0 72-240-72 240Zm-84-400v-80 80Z"/></svg>`,
childrens,
route: ``
});
@@ -101,7 +101,7 @@ function documentsTreeToItems(documentsTree: DocumentTree[]): Item[] {
function defaultIcon(hasChild: boolean): string {
if (hasChild) return '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--green);" d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h240v-560H200v560Zm320 0h240v-280H520v280Zm0-360h240v-200H520v200Z"/></svg>';
- return '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--yellow);" d="M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></svg>';
+ return '<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24"><path style="fill:var(--pink);" d="M320-240h320v-80H320v80Zm0-160h320v-80H320v80ZM240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></svg>';
}
@@ -132,7 +132,7 @@ watch(isOpened, (val) => {
<style scoped lang="scss">
.sidebar-content {
margin: 0 0 0 10px;
- background: var(--bg-contrast);
+ background: var(--bg-color);
display: flex;
flex-direction: column;
height: 100%;
diff --git a/dashboard/components/sidebar/SidebarItem.vue b/dashboard/components/sidebar/SidebarItem.vue
index 6f6a0422..5fa18c4c 100644
--- a/dashboard/components/sidebar/SidebarItem.vue
+++ b/dashboard/components/sidebar/SidebarItem.vue
@@ -20,7 +20,7 @@ const isActive = (id: string) => doc_id.value === id;
display: flex;
justify-content: flex-start;
align-items: center;
- min-height: 28px;
+ min-height: 29px;
padding: 0 2.5px;
margin: 2.5px 0;
border-radius: 5px;
@@ -41,7 +41,7 @@ const isActive = (id: string) => doc_id.value === id;
fill: var(--blue);
width: 22px;
height: 20px;
- margin-right: 7px;
+ margin-right: 5px;
path {
fill: var(--blue);
diff --git a/dashboard/composables/Sidebar.ts b/dashboard/composables/Sidebar.ts
index b47baa12..38215be0 100644
--- a/dashboard/composables/Sidebar.ts
+++ b/dashboard/composables/Sidebar.ts
@@ -2,7 +2,7 @@ import { ref } from 'vue';
export const isOpened = ref(false);
export const hasSidebar = ref(false);
-export const paneWidth = ref(340); // initial width of pane 1
+export const paneWidth = ref(360); // initial width of pane 1
export function useSidebar() {
const toggleSidebar = () => {